UNPKG

@wildboar/copp

Version:

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

56 lines (55 loc) 2.46 kB
import * as $ from '@wildboar/asn1/functional'; /** * @summary Presentation_context_deletion_result_list_Item_acceptance * @constant * @type {number} */ export const Presentation_context_deletion_result_list_Item_acceptance = 0; /* LONG_NAMED_INTEGER_VALUE */ /** * @summary Presentation_context_deletion_result_list_Item_acceptance * @constant * @type {number} */ export const acceptance = Presentation_context_deletion_result_list_Item_acceptance; /* SHORT_NAMED_INTEGER_VALUE */ /** * @summary Presentation_context_deletion_result_list_Item_user_rejection * @constant * @type {number} */ export const Presentation_context_deletion_result_list_Item_user_rejection = 1; /* LONG_NAMED_INTEGER_VALUE */ /** * @summary Presentation_context_deletion_result_list_Item_user_rejection * @constant * @type {number} */ export const user_rejection = Presentation_context_deletion_result_list_Item_user_rejection; /* SHORT_NAMED_INTEGER_VALUE */ let _cached_decoder_for_Presentation_context_deletion_result_list_Item = null; /** * @summary Decodes an ASN.1 element into a(n) Presentation_context_deletion_result_list_Item * @function * @param {_Element} el The element being decoded. * @returns {Presentation_context_deletion_result_list_Item} The decoded data structure. */ export function _decode_Presentation_context_deletion_result_list_Item(el) { if (!_cached_decoder_for_Presentation_context_deletion_result_list_Item) { _cached_decoder_for_Presentation_context_deletion_result_list_Item = $._decodeInteger; } return _cached_decoder_for_Presentation_context_deletion_result_list_Item(el); } let _cached_encoder_for_Presentation_context_deletion_result_list_Item = null; /** * @summary Encodes a(n) Presentation_context_deletion_result_list_Item 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_deletion_result_list_Item, encoded as an ASN.1 Element. */ export function _encode_Presentation_context_deletion_result_list_Item(value, elGetter) { if (!_cached_encoder_for_Presentation_context_deletion_result_list_Item) { _cached_encoder_for_Presentation_context_deletion_result_list_Item = $._encodeInteger; } return _cached_encoder_for_Presentation_context_deletion_result_list_Item(value, elGetter); } /* eslint-enable */