UNPKG

@wildboar/copp

Version:

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

30 lines (29 loc) 1.44 kB
import { _decode_Presentation_selector, _encode_Presentation_selector, } from '../ISO8823-PRESENTATION/Presentation-selector.ta.mjs'; let _cached_decoder_for_Responding_presentation_selector = null; /** * @summary Decodes an ASN.1 element into a(n) Responding_presentation_selector * @function * @param {_Element} el The element being decoded. * @returns {Responding_presentation_selector} The decoded data structure. */ export function _decode_Responding_presentation_selector(el) { if (!_cached_decoder_for_Responding_presentation_selector) { _cached_decoder_for_Responding_presentation_selector = _decode_Presentation_selector; } return _cached_decoder_for_Responding_presentation_selector(el); } let _cached_encoder_for_Responding_presentation_selector = null; /** * @summary Encodes a(n) Responding_presentation_selector 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 Responding_presentation_selector, encoded as an ASN.1 Element. */ export function _encode_Responding_presentation_selector(value, elGetter) { if (!_cached_encoder_for_Responding_presentation_selector) { _cached_encoder_for_Responding_presentation_selector = _encode_Presentation_selector; } return _cached_encoder_for_Responding_presentation_selector(value, elGetter); } /* eslint-enable */