UNPKG

@wildboar/copp

Version:

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

49 lines 2.73 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._encode_Context_list = exports._decode_Context_list = exports._encode_Context_list_Item = exports._decode_Context_list_Item = exports.Context_list_Item = void 0; const $ = require("asn1-ts/dist/node/functional"); const Context_list_Item_ta_1 = require("../ISO8823-PRESENTATION/Context-list-Item.ta"); var Context_list_Item_ta_2 = require("../ISO8823-PRESENTATION/Context-list-Item.ta"); Object.defineProperty(exports, "Context_list_Item", { enumerable: true, get: function () { return Context_list_Item_ta_2.Context_list_Item; } }); Object.defineProperty(exports, "_decode_Context_list_Item", { enumerable: true, get: function () { return Context_list_Item_ta_2._decode_Context_list_Item; } }); Object.defineProperty(exports, "_encode_Context_list_Item", { enumerable: true, get: function () { return Context_list_Item_ta_2._encode_Context_list_Item; } }); /* END_OF_SYMBOL_DEFINITION Context_list */ /* START_OF_SYMBOL_DEFINITION _cached_decoder_for_Context_list */ let _cached_decoder_for_Context_list = null; /* END_OF_SYMBOL_DEFINITION _cached_decoder_for_Context_list */ /* START_OF_SYMBOL_DEFINITION _decode_Context_list */ /** * @summary Decodes an ASN.1 element into a(n) Context_list * @function * @param {_Element} el The element being decoded. * @returns {Context_list} The decoded data structure. */ function _decode_Context_list(el) { if (!_cached_decoder_for_Context_list) { _cached_decoder_for_Context_list = $._decodeSequenceOf(() => Context_list_Item_ta_1._decode_Context_list_Item); } return _cached_decoder_for_Context_list(el); } exports._decode_Context_list = _decode_Context_list; /* END_OF_SYMBOL_DEFINITION _decode_Context_list */ /* START_OF_SYMBOL_DEFINITION _cached_encoder_for_Context_list */ let _cached_encoder_for_Context_list = null; /* END_OF_SYMBOL_DEFINITION _cached_encoder_for_Context_list */ /* START_OF_SYMBOL_DEFINITION _encode_Context_list */ /** * @summary Encodes a(n) Context_list 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 Context_list, encoded as an ASN.1 Element. */ function _encode_Context_list(value, elGetter) { if (!_cached_encoder_for_Context_list) { _cached_encoder_for_Context_list = $._encodeSequenceOf(() => Context_list_Item_ta_1._encode_Context_list_Item, $.BER); } return _cached_encoder_for_Context_list(value, elGetter); } exports._encode_Context_list = _encode_Context_list; /* END_OF_SYMBOL_DEFINITION _encode_Context_list */ /* eslint-enable */ //# sourceMappingURL=Context-list.ta.js.map