UNPKG

@wildboar/copp

Version:

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

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