UNPKG

@wildboar/copp

Version:

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

32 lines (31 loc) 1.06 kB
import { ASN1Element as _Element } from 'asn1-ts'; import * as $ from 'asn1-ts/dist/node/functional'; 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 CPC_type * @description * * ### ASN.1 Definition: * * ```asn1 * CPC-type ::= * User-data * ``` */ export declare type CPC_type = User_data; /** * @summary Decodes an ASN.1 element into a(n) CPC_type * @function * @param {_Element} el The element being decoded. * @returns {CPC_type} The decoded data structure. */ export declare function _decode_CPC_type(el: _Element): User_data; /** * @summary Encodes a(n) CPC_type 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 CPC_type, encoded as an ASN.1 Element. */ export declare function _encode_CPC_type(value: CPC_type, elGetter: $.ASN1Encoder<CPC_type>): _Element;