/**
 *   Generated file. Do not edit
 */
import "./converter-stream-extension";
import { TapStreamReader } from "@iotize/tap/client/impl";
import { TapStreamWriter } from "@iotize/tap/client/impl";
var SinglePacketStoreInfoConverter = /** @class */ (function () {
    function SinglePacketStoreInfoConverter() {
    }
    SinglePacketStoreInfoConverter.prototype.encode = function (model, stream) {
        if (stream === void 0) { stream = new TapStreamWriter(); }
        stream.writeSinglePacketStoreInfo(model);
        return stream.toBytes;
    };
    SinglePacketStoreInfoConverter.prototype.decode = function (data) {
        var stream = data instanceof TapStreamReader ? data : TapStreamReader.create(data);
        return stream.readSinglePacketStoreInfo();
    };
    return SinglePacketStoreInfoConverter;
}());
export { SinglePacketStoreInfoConverter };
var SinglePacketConverter = /** @class */ (function () {
    function SinglePacketConverter() {
    }
    SinglePacketConverter.prototype.encode = function (model, stream) {
        if (stream === void 0) { stream = new TapStreamWriter(); }
        stream.writeSinglePacket(model);
        return stream.toBytes;
    };
    SinglePacketConverter.prototype.decode = function (data) {
        var stream = data instanceof TapStreamReader ? data : TapStreamReader.create(data);
        return stream.readSinglePacket();
    };
    return SinglePacketConverter;
}());
export { SinglePacketConverter };
var SinglePacketChunkConverter = /** @class */ (function () {
    function SinglePacketChunkConverter() {
    }
    SinglePacketChunkConverter.prototype.encode = function (model, stream) {
        if (stream === void 0) { stream = new TapStreamWriter(); }
        stream.writeSinglePacketChunk(model);
        return stream.toBytes;
    };
    SinglePacketChunkConverter.prototype.decode = function (data) {
        var stream = data instanceof TapStreamReader ? data : TapStreamReader.create(data);
        return stream.readSinglePacketChunk();
    };
    return SinglePacketChunkConverter;
}());
export { SinglePacketChunkConverter };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVydGVycy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bpb3RpemUvdGFwL3NlcnZpY2UvaW1wbC9zaW5nbGUtcGFja2V0LyIsInNvdXJjZXMiOlsibGliL2dlbmVyYXRlZC9jb252ZXJ0Z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