UNPKG

@wildboar/copp

Version:

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

161 lines (160 loc) 5.47 kB
import { OPTIONAL, INTEGER, ASN1Element as _Element } from 'asn1-ts'; import * as $ from 'asn1-ts/dist/node/functional'; export { RTORQapdu, _decode_RTORQapdu, _encode_RTORQapdu, } from '@wildboar/rtse/src/lib/modules/Reliable-Transfer-APDU/RTORQapdu.ta'; import { RTORQapdu_dialogueMode } from '@wildboar/rtse/src/lib/modules/Reliable-Transfer-APDU/RTORQapdu-dialogueMode.ta'; export { RTORQapdu_dialogueMode, RTORQapdu_dialogueMode_monologue, monologue, RTORQapdu_dialogueMode_twa, twa, _decode_RTORQapdu_dialogueMode, _encode_RTORQapdu_dialogueMode, } from '@wildboar/rtse/src/lib/modules/Reliable-Transfer-APDU/RTORQapdu-dialogueMode.ta'; import { ConnectionData } from '@wildboar/rtse/src/lib/modules/Reliable-Transfer-APDU/ConnectionData.ta'; export { ConnectionData, _decode_ConnectionData, _encode_ConnectionData, } from '@wildboar/rtse/src/lib/modules/Reliable-Transfer-APDU/ConnectionData.ta'; /** * @summary CP_type_x410_mode_parameters * @description * * ### ASN.1 Definition: * * ```asn1 * CP-type-x410-mode-parameters ::= SEQUENCE { -- REMOVED_FROM_UNNESTING -- } * ``` * * @class */ export declare class CP_type_x410_mode_parameters { /** * @summary `checkpointSize`. * @public * @readonly */ readonly checkpointSize: OPTIONAL<INTEGER>; /** * @summary `windowSize`. * @public * @readonly */ readonly windowSize: OPTIONAL<INTEGER>; /** * @summary `dialogueMode`. * @public * @readonly */ readonly dialogueMode: OPTIONAL<RTORQapdu_dialogueMode>; /** * @summary `connectionDataRQ`. * @public * @readonly */ readonly connectionDataRQ: ConnectionData; /** * @summary `applicationProtocol`. * @public * @readonly */ readonly applicationProtocol: OPTIONAL<INTEGER>; constructor( /** * @summary `checkpointSize`. * @public * @readonly */ checkpointSize: OPTIONAL<INTEGER>, /** * @summary `windowSize`. * @public * @readonly */ windowSize: OPTIONAL<INTEGER>, /** * @summary `dialogueMode`. * @public * @readonly */ dialogueMode: OPTIONAL<RTORQapdu_dialogueMode>, /** * @summary `connectionDataRQ`. * @public * @readonly */ connectionDataRQ: ConnectionData, /** * @summary `applicationProtocol`. * @public * @readonly */ applicationProtocol: OPTIONAL<INTEGER>); /** * @summary Restructures an object into a CP_type_x410_mode_parameters * @description * * This takes an `object` and converts it to a `CP_type_x410_mode_parameters`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `CP_type_x410_mode_parameters`. * @returns {CP_type_x410_mode_parameters} */ static _from_object(_o: { [_K in keyof CP_type_x410_mode_parameters]: CP_type_x410_mode_parameters[_K]; }): CP_type_x410_mode_parameters; /** * @summary Getter that returns the default value for `checkpointSize`. * @public * @static * @method */ static get _default_value_for_checkpointSize(): number; /** * @summary Getter that returns the default value for `windowSize`. * @public * @static * @method */ static get _default_value_for_windowSize(): number; /** * @summary Getter that returns the default value for `dialogueMode`. * @public * @static * @method */ static get _default_value_for_dialogueMode(): INTEGER; } /** * @summary The Leading Root Component Types of CP_type_x410_mode_parameters * @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_CP_type_x410_mode_parameters: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of CP_type_x410_mode_parameters * @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_CP_type_x410_mode_parameters: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of CP_type_x410_mode_parameters * @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_CP_type_x410_mode_parameters: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) CP_type_x410_mode_parameters * @function * @param {_Element} el The element being decoded. * @returns {CP_type_x410_mode_parameters} The decoded data structure. */ export declare function _decode_CP_type_x410_mode_parameters(el: _Element): CP_type_x410_mode_parameters; /** * @summary Encodes a(n) CP_type_x410_mode_parameters 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 CP_type_x410_mode_parameters, encoded as an ASN.1 Element. */ export declare function _encode_CP_type_x410_mode_parameters(value: CP_type_x410_mode_parameters, elGetter: $.ASN1Encoder<CP_type_x410_mode_parameters>): _Element;