UNPKG

@wildboar/copp

Version:

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

29 lines (28 loc) 1.16 kB
import { INTEGER, ASN1Element as _Element } from 'asn1-ts'; import * as $ from 'asn1-ts/dist/node/functional'; /** * @summary Presentation_context_identifier * @description * * ### ASN.1 Definition: * * ```asn1 * Presentation-context-identifier ::= INTEGER(1..127, ..., 128..MAX) * ``` */ export declare type Presentation_context_identifier = INTEGER; /** * @summary Decodes an ASN.1 element into a(n) Presentation_context_identifier * @function * @param {_Element} el The element being decoded. * @returns {Presentation_context_identifier} The decoded data structure. */ export declare function _decode_Presentation_context_identifier(el: _Element): INTEGER; /** * @summary Encodes a(n) Presentation_context_identifier 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 Presentation_context_identifier, encoded as an ASN.1 Element. */ export declare function _encode_Presentation_context_identifier(value: Presentation_context_identifier, elGetter: $.ASN1Encoder<Presentation_context_identifier>): _Element;