UNPKG

@wildboar/copp

Version:

Connection-oriented presentation protocol (COPP) data structures and business logic in TypeScript

30 lines (29 loc) 1.52 kB
import { _decode_Result_list, _encode_Result_list, } from '../ISO8823-PRESENTATION/Result-list.ta.mjs'; let _cached_decoder_for_Presentation_context_addition_result_list = null; /** * @summary Decodes an ASN.1 element into a(n) Presentation_context_addition_result_list * @function * @param {_Element} el The element being decoded. * @returns {Presentation_context_addition_result_list} The decoded data structure. */ export function _decode_Presentation_context_addition_result_list(el) { if (!_cached_decoder_for_Presentation_context_addition_result_list) { _cached_decoder_for_Presentation_context_addition_result_list = _decode_Result_list; } return _cached_decoder_for_Presentation_context_addition_result_list(el); } let _cached_encoder_for_Presentation_context_addition_result_list = null; /** * @summary Encodes a(n) Presentation_context_addition_result_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 Presentation_context_addition_result_list, encoded as an ASN.1 Element. */ export function _encode_Presentation_context_addition_result_list(value, elGetter) { if (!_cached_encoder_for_Presentation_context_addition_result_list) { _cached_encoder_for_Presentation_context_addition_result_list = _encode_Result_list; } return _cached_encoder_for_Presentation_context_addition_result_list(value, elGetter); } /* eslint-enable */