@wildboar/copp
Version:
Connection-oriented presentation protocol (COPP) data structures and business logic in TypeScript
30 lines (29 loc) • 1.43 kB
JavaScript
import { _decode_Context_list, _encode_Context_list, } from '../ISO8823-PRESENTATION/Context-list.ta.mjs';
let _cached_decoder_for_Presentation_context_addition_list = null;
/**
* @summary Decodes an ASN.1 element into a(n) Presentation_context_addition_list
* @function
* @param {_Element} el The element being decoded.
* @returns {Presentation_context_addition_list} The decoded data structure.
*/
export function _decode_Presentation_context_addition_list(el) {
if (!_cached_decoder_for_Presentation_context_addition_list) {
_cached_decoder_for_Presentation_context_addition_list = _decode_Context_list;
}
return _cached_decoder_for_Presentation_context_addition_list(el);
}
let _cached_encoder_for_Presentation_context_addition_list = null;
/**
* @summary Encodes a(n) Presentation_context_addition_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_list, encoded as an ASN.1 Element.
*/
export function _encode_Presentation_context_addition_list(value, elGetter) {
if (!_cached_encoder_for_Presentation_context_addition_list) {
_cached_encoder_for_Presentation_context_addition_list = _encode_Context_list;
}
return _cached_encoder_for_Presentation_context_addition_list(value, elGetter);
}
/* eslint-enable */