UNPKG

@wildboar/acse

Version:
31 lines (30 loc) 1.36 kB
import * as $ from '@wildboar/asn1/functional'; import { _decode_ASO_context_name, _encode_ASO_context_name, } from '../ACSE-1/ASO-context-name.ta.mjs'; let _cached_decoder_for_ASO_context_name_list = null; /** * @summary Decodes an ASN.1 element into a(n) ASO_context_name_list * @function * @param {_Element} el The element being decoded. * @returns {ASO_context_name_list} The decoded data structure. */ export function _decode_ASO_context_name_list(el) { if (!_cached_decoder_for_ASO_context_name_list) { _cached_decoder_for_ASO_context_name_list = $._decodeSequenceOf(() => _decode_ASO_context_name); } return _cached_decoder_for_ASO_context_name_list(el); } let _cached_encoder_for_ASO_context_name_list = null; /** * @summary Encodes a(n) ASO_context_name_list into an ASN.1 Element. * @function * @param value The element being encoded. * @param elGetter A function that can be used to get new ASN.1 elements. * @returns {_Element} The ASO_context_name_list, encoded as an ASN.1 Element. */ export function _encode_ASO_context_name_list(value, elGetter) { if (!_cached_encoder_for_ASO_context_name_list) { _cached_encoder_for_ASO_context_name_list = $._encodeSequenceOf(() => _encode_ASO_context_name, $.BER); } return _cached_encoder_for_ASO_context_name_list(value, elGetter); } /* eslint-enable */