UNPKG

@wildboar/pkcs

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