UNPKG

@wildboar/copp

Version:

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

123 lines (122 loc) 4.35 kB
import { OPTIONAL, ASN1Element as _Element } from 'asn1-ts'; import * as $ from 'asn1-ts/dist/node/functional'; import { Presentation_context_addition_list } from '../ISO8823-PRESENTATION/Presentation-context-addition-list.ta'; export { Presentation_context_addition_list, _decode_Presentation_context_addition_list, _encode_Presentation_context_addition_list, } from '../ISO8823-PRESENTATION/Presentation-context-addition-list.ta'; import { Presentation_context_deletion_list } from '../ISO8823-PRESENTATION/Presentation-context-deletion-list.ta'; export { Presentation_context_deletion_list, _decode_Presentation_context_deletion_list, _encode_Presentation_context_deletion_list, } from '../ISO8823-PRESENTATION/Presentation-context-deletion-list.ta'; import { User_data } from '../ISO8823-PRESENTATION/User-data.ta'; export { User_data, _decode_User_data, _encode_User_data, } from '../ISO8823-PRESENTATION/User-data.ta'; /** * @summary AC_PPDU * @description * * ### ASN.1 Definition: * * ```asn1 * AC-PPDU ::= SEQUENCE { * presentation-context-addition-list * [0] IMPLICIT Presentation-context-addition-list OPTIONAL, * presentation-context-deletion-list * [1] IMPLICIT Presentation-context-deletion-list OPTIONAL, * user-data User-data OPTIONAL * } * ``` * * @class */ export declare class AC_PPDU { /** * @summary `presentation_context_addition_list`. * @public * @readonly */ readonly presentation_context_addition_list: OPTIONAL<Presentation_context_addition_list>; /** * @summary `presentation_context_deletion_list`. * @public * @readonly */ readonly presentation_context_deletion_list: OPTIONAL<Presentation_context_deletion_list>; /** * @summary `user_data`. * @public * @readonly */ readonly user_data: OPTIONAL<User_data>; constructor( /** * @summary `presentation_context_addition_list`. * @public * @readonly */ presentation_context_addition_list: OPTIONAL<Presentation_context_addition_list>, /** * @summary `presentation_context_deletion_list`. * @public * @readonly */ presentation_context_deletion_list: OPTIONAL<Presentation_context_deletion_list>, /** * @summary `user_data`. * @public * @readonly */ user_data: OPTIONAL<User_data>); /** * @summary Restructures an object into a AC_PPDU * @description * * This takes an `object` and converts it to a `AC_PPDU`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `AC_PPDU`. * @returns {AC_PPDU} */ static _from_object(_o: { [_K in keyof AC_PPDU]: AC_PPDU[_K]; }): AC_PPDU; } /** * @summary The Leading Root Component Types of AC_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_AC_PPDU: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of AC_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_AC_PPDU: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of AC_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_AC_PPDU: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) AC_PPDU * @function * @param {_Element} el The element being decoded. * @returns {AC_PPDU} The decoded data structure. */ export declare function _decode_AC_PPDU(el: _Element): AC_PPDU; /** * @summary Encodes a(n) AC_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 AC_PPDU, encoded as an ASN.1 Element. */ export declare function _encode_AC_PPDU(value: AC_PPDU, elGetter: $.ASN1Encoder<AC_PPDU>): _Element;