UNPKG

@wildboar/copp

Version:

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

29 lines (28 loc) 1.07 kB
import { OCTET_STRING, ASN1Element as _Element } from 'asn1-ts'; import * as $ from 'asn1-ts/dist/node/functional'; /** * @summary Presentation_selector * @description * * ### ASN.1 Definition: * * ```asn1 * Presentation-selector ::= OCTET STRING(SIZE (1..4, ..., 5..MAX)) * ``` */ export declare type Presentation_selector = OCTET_STRING; /** * @summary Decodes an ASN.1 element into a(n) Presentation_selector * @function * @param {_Element} el The element being decoded. * @returns {Presentation_selector} The decoded data structure. */ export declare function _decode_Presentation_selector(el: _Element): Uint8Array; /** * @summary Encodes a(n) Presentation_selector 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_selector, encoded as an ASN.1 Element. */ export declare function _encode_Presentation_selector(value: Presentation_selector, elGetter: $.ASN1Encoder<Presentation_selector>): _Element;