UNPKG

@wildboar/pkcs

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