UNPKG

@wildboar/copp

Version:

Connection-oriented presentation protocol (COPP) data structures and business logic in TypeScript

58 lines 2.48 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._encode_Protocol_version = exports._decode_Protocol_version = exports.version_1 = exports.Protocol_version_version_1 = void 0; const $ = require("asn1-ts/dist/node/functional"); /* END_OF_SYMBOL_DEFINITION Protocol_version */ /* START_OF_SYMBOL_DEFINITION Protocol_version_version_1 */ /** * @summary Protocol_version_version_1 * @constant */ exports.Protocol_version_version_1 = 0; /* LONG_NAMED_BIT */ /* END_OF_SYMBOL_DEFINITION Protocol_version_version_1 */ /* START_OF_SYMBOL_DEFINITION version_1 */ /** * @summary version_1 * @constant */ exports.version_1 = exports.Protocol_version_version_1; /* SHORT_NAMED_BIT */ /* END_OF_SYMBOL_DEFINITION version_1 */ /* START_OF_SYMBOL_DEFINITION _cached_decoder_for_Protocol_version */ let _cached_decoder_for_Protocol_version = null; /* END_OF_SYMBOL_DEFINITION _cached_decoder_for_Protocol_version */ /* START_OF_SYMBOL_DEFINITION _decode_Protocol_version */ /** * @summary Decodes an ASN.1 element into a(n) Protocol_version * @function * @param {_Element} el The element being decoded. * @returns {Protocol_version} The decoded data structure. */ function _decode_Protocol_version(el) { if (!_cached_decoder_for_Protocol_version) { _cached_decoder_for_Protocol_version = $._decodeBitString; } return _cached_decoder_for_Protocol_version(el); } exports._decode_Protocol_version = _decode_Protocol_version; /* END_OF_SYMBOL_DEFINITION _decode_Protocol_version */ /* START_OF_SYMBOL_DEFINITION _cached_encoder_for_Protocol_version */ let _cached_encoder_for_Protocol_version = null; /* END_OF_SYMBOL_DEFINITION _cached_encoder_for_Protocol_version */ /* START_OF_SYMBOL_DEFINITION _encode_Protocol_version */ /** * @summary Encodes a(n) Protocol_version into an ASN.1 Element. * @function * @param {value} el The element being decoded. * @param elGetter A function that can be used to get new ASN.1 elements. * @returns {_Element} The Protocol_version, encoded as an ASN.1 Element. */ function _encode_Protocol_version(value, elGetter) { if (!_cached_encoder_for_Protocol_version) { _cached_encoder_for_Protocol_version = $._encodeBitString; } return _cached_encoder_for_Protocol_version(value, elGetter); } exports._encode_Protocol_version = _encode_Protocol_version; /* END_OF_SYMBOL_DEFINITION _encode_Protocol_version */ /* eslint-enable */ //# sourceMappingURL=Protocol-version.ta.js.map