UNPKG

ess-ts

Version:

Enhanced Security Services (ESS) in TypeScript

28 lines 1.25 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._encode_ESSPrivacyMark = exports._decode_ESSPrivacyMark = void 0; const tslib_1 = require("tslib"); const $ = tslib_1.__importStar(require("asn1-ts/dist/node/functional")); let _cached_decoder_for_ESSPrivacyMark = null; function _decode_ESSPrivacyMark(el) { if (!_cached_decoder_for_ESSPrivacyMark) { _cached_decoder_for_ESSPrivacyMark = $._decode_inextensible_choice({ "UNIVERSAL 19": ["pString", $._decodePrintableString], "UNIVERSAL 12": ["utf8String", $._decodeUTF8String], }); } return _cached_decoder_for_ESSPrivacyMark(el); } exports._decode_ESSPrivacyMark = _decode_ESSPrivacyMark; let _cached_encoder_for_ESSPrivacyMark = null; function _encode_ESSPrivacyMark(value, elGetter) { if (!_cached_encoder_for_ESSPrivacyMark) { _cached_encoder_for_ESSPrivacyMark = $._encode_choice({ pString: $._encodePrintableString, utf8String: $._encodeUTF8String, }, $.BER); } return _cached_encoder_for_ESSPrivacyMark(value, elGetter); } exports._encode_ESSPrivacyMark = _encode_ESSPrivacyMark; //# sourceMappingURL=ESSPrivacyMark.ta.js.map