UNPKG

@wildboar/copp

Version:

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

44 lines 2.14 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._encode_Presentation_selector = exports._decode_Presentation_selector = void 0; const $ = require("asn1-ts/dist/node/functional"); /* END_OF_SYMBOL_DEFINITION Presentation_selector */ /* START_OF_SYMBOL_DEFINITION _cached_decoder_for_Presentation_selector */ let _cached_decoder_for_Presentation_selector = null; /* END_OF_SYMBOL_DEFINITION _cached_decoder_for_Presentation_selector */ /* START_OF_SYMBOL_DEFINITION _decode_Presentation_selector */ /** * @summary Decodes an ASN.1 element into a(n) Presentation_selector * @function * @param {_Element} el The element being decoded. * @returns {Presentation_selector} The decoded data structure. */ function _decode_Presentation_selector(el) { if (!_cached_decoder_for_Presentation_selector) { _cached_decoder_for_Presentation_selector = $._decodeOctetString; } return _cached_decoder_for_Presentation_selector(el); } exports._decode_Presentation_selector = _decode_Presentation_selector; /* END_OF_SYMBOL_DEFINITION _decode_Presentation_selector */ /* START_OF_SYMBOL_DEFINITION _cached_encoder_for_Presentation_selector */ let _cached_encoder_for_Presentation_selector = null; /* END_OF_SYMBOL_DEFINITION _cached_encoder_for_Presentation_selector */ /* START_OF_SYMBOL_DEFINITION _encode_Presentation_selector */ /** * @summary Encodes a(n) Presentation_selector 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 Presentation_selector, encoded as an ASN.1 Element. */ function _encode_Presentation_selector(value, elGetter) { if (!_cached_encoder_for_Presentation_selector) { _cached_encoder_for_Presentation_selector = $._encodeOctetString; } return _cached_encoder_for_Presentation_selector(value, elGetter); } exports._encode_Presentation_selector = _encode_Presentation_selector; /* END_OF_SYMBOL_DEFINITION _encode_Presentation_selector */ /* eslint-enable */ //# sourceMappingURL=Presentation-selector.ta.js.map