UNPKG

@wildboar/copp

Version:

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

249 lines 26.3 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.s_token_give_indication = exports.Event_identifier_s_token_give_indication = exports.s_release_confirm = exports.Event_identifier_s_release_confirm = exports.s_release_indication = exports.Event_identifier_s_release_indication = exports.rsa_PPDU = exports.Event_identifier_rsa_PPDU = exports.rs_PPDU = exports.Event_identifier_rs_PPDU = exports.tcc_PPDU = exports.Event_identifier_tcc_PPDU = exports.tc_PPDU = exports.Event_identifier_tc_PPDU = exports.te_PPDU = exports.Event_identifier_te_PPDU = exports.ttd_PPDU = exports.Event_identifier_ttd_PPDU = exports.td_PPDU = exports.Event_identifier_td_PPDU = exports.aca_PPDU = exports.Event_identifier_aca_PPDU = exports.ac_PPDU = exports.Event_identifier_ac_PPDU = exports.arp_PPDU = exports.Event_identifier_arp_PPDU = exports.aru_PPDU = exports.Event_identifier_aru_PPDU = exports.cpr_PPDU = exports.Event_identifier_cpr_PPDU = exports.cpa_PPDU = exports.Event_identifier_cpa_PPDU = exports.cp_PPDU = exports.Event_identifier_cp_PPDU = exports._encode_Abort_reason = exports._decode_Abort_reason = exports.invalid_ppdu_parameter_value = exports.Abort_reason_invalid_ppdu_parameter_value = exports.unexpected_ppdu_parameter = exports.Abort_reason_unexpected_ppdu_parameter = exports.unrecognized_ppdu_parameter = exports.Abort_reason_unrecognized_ppdu_parameter = exports.unexpected_session_service_primitive = exports.Abort_reason_unexpected_session_service_primitive = exports.unexpected_ppdu = exports.Abort_reason_unexpected_ppdu = exports.unrecognized_ppdu = exports.Abort_reason_unrecognized_ppdu = exports.reason_not_specified = exports.Abort_reason_reason_not_specified = void 0; exports._encode_ARP_PPDU = exports._decode_ARP_PPDU = exports._extension_additions_list_spec_for_ARP_PPDU = exports._root_component_type_list_2_spec_for_ARP_PPDU = exports._root_component_type_list_1_spec_for_ARP_PPDU = exports.ARP_PPDU = exports._encode_Event_identifier = exports._decode_Event_identifier = exports.s_activity_end_confirm = exports.Event_identifier_s_activity_end_confirm = exports.s_activity_end_indication = exports.Event_identifier_s_activity_end_indication = exports.s_activity_discard_confirm = exports.Event_identifier_s_activity_discard_confirm = exports.s_activity_discard_indication = exports.Event_identifier_s_activity_discard_indication = exports.s_activity_interrupt_confirm = exports.Event_identifier_s_activity_interrupt_confirm = exports.s_activity_interrupt_indication = exports.Event_identifier_s_activity_interrupt_indication = exports.s_activity_resume_indication = exports.Event_identifier_s_activity_resume_indication = exports.s_activity_start_indication = exports.Event_identifier_s_activity_start_indication = exports.s_u_exception_report_indication = exports.Event_identifier_s_u_exception_report_indication = exports.s_p_exception_report_indication = exports.Event_identifier_s_p_exception_report_indication = exports.s_sync_major_confirm = exports.Event_identifier_s_sync_major_confirm = exports.s_sync_major_indication = exports.Event_identifier_s_sync_major_indication = exports.s_sync_minor_confirm = exports.Event_identifier_s_sync_minor_confirm = exports.s_sync_minor_indication = exports.Event_identifier_s_sync_minor_indication = exports.s_control_give_indication = exports.Event_identifier_s_control_give_indication = exports.s_token_please_indication = exports.Event_identifier_s_token_please_indication = void 0; /* eslint-disable */ const asn1_ts_1 = require("asn1-ts"); const $ = require("asn1-ts/dist/node/functional"); const Abort_reason_ta_1 = require("../ISO8823-PRESENTATION/Abort-reason.ta"); var Abort_reason_ta_2 = require("../ISO8823-PRESENTATION/Abort-reason.ta"); Object.defineProperty(exports, "Abort_reason_reason_not_specified", { enumerable: true, get: function () { return Abort_reason_ta_2.Abort_reason_reason_not_specified; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "reason_not_specified", { enumerable: true, get: function () { return Abort_reason_ta_2.reason_not_specified; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Abort_reason_unrecognized_ppdu", { enumerable: true, get: function () { return Abort_reason_ta_2.Abort_reason_unrecognized_ppdu; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "unrecognized_ppdu", { enumerable: true, get: function () { return Abort_reason_ta_2.unrecognized_ppdu; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Abort_reason_unexpected_ppdu", { enumerable: true, get: function () { return Abort_reason_ta_2.Abort_reason_unexpected_ppdu; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "unexpected_ppdu", { enumerable: true, get: function () { return Abort_reason_ta_2.unexpected_ppdu; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Abort_reason_unexpected_session_service_primitive", { enumerable: true, get: function () { return Abort_reason_ta_2.Abort_reason_unexpected_session_service_primitive; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "unexpected_session_service_primitive", { enumerable: true, get: function () { return Abort_reason_ta_2.unexpected_session_service_primitive; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Abort_reason_unrecognized_ppdu_parameter", { enumerable: true, get: function () { return Abort_reason_ta_2.Abort_reason_unrecognized_ppdu_parameter; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "unrecognized_ppdu_parameter", { enumerable: true, get: function () { return Abort_reason_ta_2.unrecognized_ppdu_parameter; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Abort_reason_unexpected_ppdu_parameter", { enumerable: true, get: function () { return Abort_reason_ta_2.Abort_reason_unexpected_ppdu_parameter; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "unexpected_ppdu_parameter", { enumerable: true, get: function () { return Abort_reason_ta_2.unexpected_ppdu_parameter; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Abort_reason_invalid_ppdu_parameter_value", { enumerable: true, get: function () { return Abort_reason_ta_2.Abort_reason_invalid_ppdu_parameter_value; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "invalid_ppdu_parameter_value", { enumerable: true, get: function () { return Abort_reason_ta_2.invalid_ppdu_parameter_value; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "_decode_Abort_reason", { enumerable: true, get: function () { return Abort_reason_ta_2._decode_Abort_reason; } }); Object.defineProperty(exports, "_encode_Abort_reason", { enumerable: true, get: function () { return Abort_reason_ta_2._encode_Abort_reason; } }); const Event_identifier_ta_1 = require("../ISO8823-PRESENTATION/Event-identifier.ta"); var Event_identifier_ta_2 = require("../ISO8823-PRESENTATION/Event-identifier.ta"); Object.defineProperty(exports, "Event_identifier_cp_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_cp_PPDU; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "cp_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.cp_PPDU; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_cpa_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_cpa_PPDU; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "cpa_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.cpa_PPDU; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_cpr_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_cpr_PPDU; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "cpr_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.cpr_PPDU; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_aru_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_aru_PPDU; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "aru_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.aru_PPDU; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_arp_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_arp_PPDU; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "arp_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.arp_PPDU; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_ac_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_ac_PPDU; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "ac_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.ac_PPDU; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_aca_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_aca_PPDU; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "aca_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.aca_PPDU; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_td_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_td_PPDU; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "td_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.td_PPDU; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_ttd_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_ttd_PPDU; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "ttd_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.ttd_PPDU; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_te_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_te_PPDU; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "te_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.te_PPDU; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_tc_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_tc_PPDU; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "tc_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.tc_PPDU; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_tcc_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_tcc_PPDU; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "tcc_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.tcc_PPDU; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_rs_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_rs_PPDU; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "rs_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.rs_PPDU; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_rsa_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_rsa_PPDU; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "rsa_PPDU", { enumerable: true, get: function () { return Event_identifier_ta_2.rsa_PPDU; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_s_release_indication", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_s_release_indication; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "s_release_indication", { enumerable: true, get: function () { return Event_identifier_ta_2.s_release_indication; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_s_release_confirm", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_s_release_confirm; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "s_release_confirm", { enumerable: true, get: function () { return Event_identifier_ta_2.s_release_confirm; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_s_token_give_indication", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_s_token_give_indication; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "s_token_give_indication", { enumerable: true, get: function () { return Event_identifier_ta_2.s_token_give_indication; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_s_token_please_indication", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_s_token_please_indication; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "s_token_please_indication", { enumerable: true, get: function () { return Event_identifier_ta_2.s_token_please_indication; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_s_control_give_indication", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_s_control_give_indication; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "s_control_give_indication", { enumerable: true, get: function () { return Event_identifier_ta_2.s_control_give_indication; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_s_sync_minor_indication", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_s_sync_minor_indication; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "s_sync_minor_indication", { enumerable: true, get: function () { return Event_identifier_ta_2.s_sync_minor_indication; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_s_sync_minor_confirm", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_s_sync_minor_confirm; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "s_sync_minor_confirm", { enumerable: true, get: function () { return Event_identifier_ta_2.s_sync_minor_confirm; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_s_sync_major_indication", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_s_sync_major_indication; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "s_sync_major_indication", { enumerable: true, get: function () { return Event_identifier_ta_2.s_sync_major_indication; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_s_sync_major_confirm", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_s_sync_major_confirm; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "s_sync_major_confirm", { enumerable: true, get: function () { return Event_identifier_ta_2.s_sync_major_confirm; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_s_p_exception_report_indication", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_s_p_exception_report_indication; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "s_p_exception_report_indication", { enumerable: true, get: function () { return Event_identifier_ta_2.s_p_exception_report_indication; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_s_u_exception_report_indication", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_s_u_exception_report_indication; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "s_u_exception_report_indication", { enumerable: true, get: function () { return Event_identifier_ta_2.s_u_exception_report_indication; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_s_activity_start_indication", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_s_activity_start_indication; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "s_activity_start_indication", { enumerable: true, get: function () { return Event_identifier_ta_2.s_activity_start_indication; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_s_activity_resume_indication", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_s_activity_resume_indication; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "s_activity_resume_indication", { enumerable: true, get: function () { return Event_identifier_ta_2.s_activity_resume_indication; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_s_activity_interrupt_indication", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_s_activity_interrupt_indication; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "s_activity_interrupt_indication", { enumerable: true, get: function () { return Event_identifier_ta_2.s_activity_interrupt_indication; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_s_activity_interrupt_confirm", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_s_activity_interrupt_confirm; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "s_activity_interrupt_confirm", { enumerable: true, get: function () { return Event_identifier_ta_2.s_activity_interrupt_confirm; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_s_activity_discard_indication", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_s_activity_discard_indication; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "s_activity_discard_indication", { enumerable: true, get: function () { return Event_identifier_ta_2.s_activity_discard_indication; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_s_activity_discard_confirm", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_s_activity_discard_confirm; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "s_activity_discard_confirm", { enumerable: true, get: function () { return Event_identifier_ta_2.s_activity_discard_confirm; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_s_activity_end_indication", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_s_activity_end_indication; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "s_activity_end_indication", { enumerable: true, get: function () { return Event_identifier_ta_2.s_activity_end_indication; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "Event_identifier_s_activity_end_confirm", { enumerable: true, get: function () { return Event_identifier_ta_2.Event_identifier_s_activity_end_confirm; } }); /* IMPORTED_LONG_NAMED_INTEGER */ Object.defineProperty(exports, "s_activity_end_confirm", { enumerable: true, get: function () { return Event_identifier_ta_2.s_activity_end_confirm; } }); /* IMPORTED_SHORT_NAMED_INTEGER */ Object.defineProperty(exports, "_decode_Event_identifier", { enumerable: true, get: function () { return Event_identifier_ta_2._decode_Event_identifier; } }); Object.defineProperty(exports, "_encode_Event_identifier", { enumerable: true, get: function () { return Event_identifier_ta_2._encode_Event_identifier; } }); /* START_OF_SYMBOL_DEFINITION ARP_PPDU */ /** * @summary ARP_PPDU * @description * * ### ASN.1 Definition: * * ```asn1 * ARP-PPDU ::= SEQUENCE { * provider-reason [0] IMPLICIT Abort-reason OPTIONAL, * event-identifier [1] IMPLICIT Event-identifier OPTIONAL * } * ``` * * @class */ class ARP_PPDU { constructor( /** * @summary `provider_reason`. * @public * @readonly */ provider_reason, /** * @summary `event_identifier`. * @public * @readonly */ event_identifier) { this.provider_reason = provider_reason; this.event_identifier = event_identifier; } /** * @summary Restructures an object into a ARP_PPDU * @description * * This takes an `object` and converts it to a `ARP_PPDU`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `ARP_PPDU`. * @returns {ARP_PPDU} */ static _from_object(_o) { return new ARP_PPDU(_o.provider_reason, _o.event_identifier); } } exports.ARP_PPDU = ARP_PPDU; /* END_OF_SYMBOL_DEFINITION ARP_PPDU */ /* START_OF_SYMBOL_DEFINITION _root_component_type_list_1_spec_for_ARP_PPDU */ /** * @summary The Leading Root Component Types of ARP_PPDU * @description * * This is an array of `ComponentSpec`s that define how to decode the leading root component type list of a SET or SEQUENCE. * * @constant */ exports._root_component_type_list_1_spec_for_ARP_PPDU = [ new $.ComponentSpec('provider-reason', true, $.hasTag(asn1_ts_1.ASN1TagClass.context, 0), undefined, undefined), new $.ComponentSpec('event-identifier', true, $.hasTag(asn1_ts_1.ASN1TagClass.context, 1), undefined, undefined), ]; /* END_OF_SYMBOL_DEFINITION _root_component_type_list_1_spec_for_ARP_PPDU */ /* START_OF_SYMBOL_DEFINITION _root_component_type_list_2_spec_for_ARP_PPDU */ /** * @summary The Trailing Root Component Types of ARP_PPDU * @description * * This is an array of `ComponentSpec`s that define how to decode the trailing root component type list of a SET or SEQUENCE. * * @constant */ exports._root_component_type_list_2_spec_for_ARP_PPDU = []; /* END_OF_SYMBOL_DEFINITION _root_component_type_list_2_spec_for_ARP_PPDU */ /* START_OF_SYMBOL_DEFINITION _extension_additions_list_spec_for_ARP_PPDU */ /** * @summary The Extension Addition Component Types of ARP_PPDU * @description * * This is an array of `ComponentSpec`s that define how to decode the extension addition component type list of a SET or SEQUENCE. * * @constant */ exports._extension_additions_list_spec_for_ARP_PPDU = []; /* END_OF_SYMBOL_DEFINITION _extension_additions_list_spec_for_ARP_PPDU */ /* START_OF_SYMBOL_DEFINITION _cached_decoder_for_ARP_PPDU */ let _cached_decoder_for_ARP_PPDU = null; /* END_OF_SYMBOL_DEFINITION _cached_decoder_for_ARP_PPDU */ /* START_OF_SYMBOL_DEFINITION _decode_ARP_PPDU */ /** * @summary Decodes an ASN.1 element into a(n) ARP_PPDU * @function * @param {_Element} el The element being decoded. * @returns {ARP_PPDU} The decoded data structure. */ function _decode_ARP_PPDU(el) { if (!_cached_decoder_for_ARP_PPDU) { _cached_decoder_for_ARP_PPDU = function (el) { /* START_OF_SEQUENCE_COMPONENT_DECLARATIONS */ let provider_reason; let event_identifier; /* END_OF_SEQUENCE_COMPONENT_DECLARATIONS */ /* START_OF_CALLBACKS_MAP */ const callbacks = { 'provider-reason': (_el) => { provider_reason = $._decode_implicit(() => Abort_reason_ta_1._decode_Abort_reason)(_el); }, 'event-identifier': (_el) => { event_identifier = $._decode_implicit(() => Event_identifier_ta_1._decode_Event_identifier)(_el); }, }; /* END_OF_CALLBACKS_MAP */ $._parse_sequence(el, callbacks, exports._root_component_type_list_1_spec_for_ARP_PPDU, exports._extension_additions_list_spec_for_ARP_PPDU, exports._root_component_type_list_2_spec_for_ARP_PPDU, undefined); return new ARP_PPDU /* SEQUENCE_CONSTRUCTOR_CALL */(provider_reason, event_identifier); }; } return _cached_decoder_for_ARP_PPDU(el); } exports._decode_ARP_PPDU = _decode_ARP_PPDU; /* END_OF_SYMBOL_DEFINITION _decode_ARP_PPDU */ /* START_OF_SYMBOL_DEFINITION _cached_encoder_for_ARP_PPDU */ let _cached_encoder_for_ARP_PPDU = null; /* END_OF_SYMBOL_DEFINITION _cached_encoder_for_ARP_PPDU */ /* START_OF_SYMBOL_DEFINITION _encode_ARP_PPDU */ /** * @summary Encodes a(n) ARP_PPDU into an ASN.1 Element. * @function * @param {value} el The element being decoded. * @param elGetter A function that can be used to get new ASN.1 elements. * @returns {_Element} The ARP_PPDU, encoded as an ASN.1 Element. */ function _encode_ARP_PPDU(value, elGetter) { if (!_cached_encoder_for_ARP_PPDU) { _cached_encoder_for_ARP_PPDU = function (value, elGetter) { return $._encodeSequence([] .concat([ /* IF_ABSENT */ value.provider_reason === undefined ? undefined : $._encode_implicit(asn1_ts_1.ASN1TagClass.context, 0, () => Abort_reason_ta_1._encode_Abort_reason, $.BER)(value.provider_reason, $.BER), /* IF_ABSENT */ value.event_identifier === undefined ? undefined : $._encode_implicit(asn1_ts_1.ASN1TagClass.context, 1, () => Event_identifier_ta_1._encode_Event_identifier, $.BER)(value.event_identifier, $.BER), ]) .filter((c) => !!c), $.BER); }; } return _cached_encoder_for_ARP_PPDU(value, elGetter); } exports._encode_ARP_PPDU = _encode_ARP_PPDU; /* END_OF_SYMBOL_DEFINITION _encode_ARP_PPDU */ /* eslint-enable */ //# sourceMappingURL=ARP-PPDU.ta.js.map