/**
 *   Generated file. Do not edit
 */
import "./converter-stream-extension";
import { TapStreamReader } from "@iotize/tap/client/impl";
import { TapStreamWriter } from "@iotize/tap/client/impl";
var ModbusVariableAddressConverter = /** @class */ (function () {
    function ModbusVariableAddressConverter() {
    }
    ModbusVariableAddressConverter.prototype.encode = function (model, stream) {
        if (stream === void 0) { stream = new TapStreamWriter(); }
        stream.writeModbusVariableAddress(model);
        return stream.toBytes;
    };
    ModbusVariableAddressConverter.prototype.decode = function (data) {
        var stream = data instanceof TapStreamReader ? data : TapStreamReader.create(data);
        return stream.readModbusVariableAddress();
    };
    return ModbusVariableAddressConverter;
}());
export { ModbusVariableAddressConverter };
var VariableTypeConverter = /** @class */ (function () {
    function VariableTypeConverter() {
    }
    VariableTypeConverter.prototype.encode = function (model, stream) {
        if (stream === void 0) { stream = new TapStreamWriter(); }
        stream.writeVariableType(model);
        return stream.toBytes;
    };
    VariableTypeConverter.prototype.decode = function (data) {
        var stream = data instanceof TapStreamReader ? data : TapStreamReader.create(data);
        return stream.readVariableType();
    };
    return VariableTypeConverter;
}());
export { VariableTypeConverter };
var VariableMetaConverter = /** @class */ (function () {
    function VariableMetaConverter() {
    }
    VariableMetaConverter.prototype.encode = function (model, stream) {
        if (stream === void 0) { stream = new TapStreamWriter(); }
        stream.writeVariableMeta(model);
        return stream.toBytes;
    };
    VariableMetaConverter.prototype.decode = function (data) {
        var stream = data instanceof TapStreamReader ? data : TapStreamReader.create(data);
        return stream.readVariableMeta();
    };
    return VariableMetaConverter;
}());
export { VariableMetaConverter };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVydGVycy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bpb3RpemUvdGFwL3NlcnZpY2UvaW1wbC92YXJpYWJsZS8iLCJzb3VyY2VzIjpbImxpYi9nZW5lcmF0ZWQvY29udmVydGVycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztB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