UNPKG

@wildboar/copp

Version:

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

103 lines 3.15 kB
import { OPTIONAL, ASN1Element as _Element } from '@wildboar/asn1'; import * as $ from '@wildboar/asn1/functional'; import { Abort_reason } from '../ISO8823-PRESENTATION/Abort-reason.ta.mjs'; import { Event_identifier } from '../ISO8823-PRESENTATION/Event-identifier.ta.mjs'; /** * @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 * } * ``` * */ export declare class ARP_PPDU { /** * @summary `provider_reason`. * @public * @readonly */ readonly provider_reason?: OPTIONAL<Abort_reason>; /** * @summary `event_identifier`. * @public * @readonly */ readonly event_identifier?: OPTIONAL<Event_identifier>; constructor( /** * @summary `provider_reason`. * @public * @readonly */ provider_reason?: OPTIONAL<Abort_reason>, /** * @summary `event_identifier`. * @public * @readonly */ event_identifier?: OPTIONAL<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: { [_K in keyof ARP_PPDU]: ARP_PPDU[_K]; }): 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 */ export declare const _root_component_type_list_1_spec_for_ARP_PPDU: $.ComponentSpec[]; /** * @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 */ export declare const _root_component_type_list_2_spec_for_ARP_PPDU: $.ComponentSpec[]; /** * @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 */ export declare const _extension_additions_list_spec_for_ARP_PPDU: $.ComponentSpec[]; /** * @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. */ export declare function _decode_ARP_PPDU(el: _Element): ARP_PPDU; /** * @summary Encodes a(n) ARP_PPDU 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 ARP_PPDU, encoded as an ASN.1 Element. */ export declare function _encode_ARP_PPDU(value: ARP_PPDU, elGetter: $.ASN1Encoder<ARP_PPDU>): _Element; //# sourceMappingURL=ARP-PPDU.ta.d.mts.map