UNPKG

@wildboar/pki-stub

Version:
47 lines 2.71 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._encode_BuiltInDomainDefinedAttributes = exports._decode_BuiltInDomainDefinedAttributes = void 0; const $ = require("asn1-ts/dist/node/functional"); const BuiltInDomainDefinedAttribute_ta_1 = require("../PkiPmiExternalDataTypes/BuiltInDomainDefinedAttribute.ta"); /* END_OF_SYMBOL_DEFINITION BuiltInDomainDefinedAttributes */ /* START_OF_SYMBOL_DEFINITION _cached_decoder_for_BuiltInDomainDefinedAttributes */ let _cached_decoder_for_BuiltInDomainDefinedAttributes = null; /* END_OF_SYMBOL_DEFINITION _cached_decoder_for_BuiltInDomainDefinedAttributes */ /* START_OF_SYMBOL_DEFINITION _decode_BuiltInDomainDefinedAttributes */ /** * @summary Decodes an ASN.1 element into a(n) BuiltInDomainDefinedAttributes * @function * @param {_Element} el The element being decoded. * @returns {BuiltInDomainDefinedAttributes} The decoded data structure. */ function _decode_BuiltInDomainDefinedAttributes(el) { if (!_cached_decoder_for_BuiltInDomainDefinedAttributes) { _cached_decoder_for_BuiltInDomainDefinedAttributes = $._decodeSequenceOf(() => BuiltInDomainDefinedAttribute_ta_1._decode_BuiltInDomainDefinedAttribute); } return _cached_decoder_for_BuiltInDomainDefinedAttributes(el); } exports._decode_BuiltInDomainDefinedAttributes = _decode_BuiltInDomainDefinedAttributes; /* END_OF_SYMBOL_DEFINITION _decode_BuiltInDomainDefinedAttributes */ /* START_OF_SYMBOL_DEFINITION _cached_encoder_for_BuiltInDomainDefinedAttributes */ let _cached_encoder_for_BuiltInDomainDefinedAttributes = null; /* END_OF_SYMBOL_DEFINITION _cached_encoder_for_BuiltInDomainDefinedAttributes */ /* START_OF_SYMBOL_DEFINITION _encode_BuiltInDomainDefinedAttributes */ /** * @summary Encodes a(n) BuiltInDomainDefinedAttributes 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 BuiltInDomainDefinedAttributes, encoded as an ASN.1 Element. */ function _encode_BuiltInDomainDefinedAttributes(value, elGetter) { if (!_cached_encoder_for_BuiltInDomainDefinedAttributes) { _cached_encoder_for_BuiltInDomainDefinedAttributes = $._encodeSequenceOf(() => BuiltInDomainDefinedAttribute_ta_1._encode_BuiltInDomainDefinedAttribute, $.BER); } return _cached_encoder_for_BuiltInDomainDefinedAttributes(value, elGetter); } exports._encode_BuiltInDomainDefinedAttributes = _encode_BuiltInDomainDefinedAttributes; /* END_OF_SYMBOL_DEFINITION _encode_BuiltInDomainDefinedAttributes */ /* eslint-enable */ //# sourceMappingURL=BuiltInDomainDefinedAttributes.ta.js.map