@wildboar/rose
Version:
Remote Operation Service Element PDUs in TypeScript
35 lines • 1.03 kB
text/typescript
import { INTEGER, NULL, ASN1Element as _Element } from '@wildboar/asn1';
import * as $ from '@wildboar/asn1/functional';
/**
* @summary InvokeId
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* InvokeId ::= CHOICE {present INTEGER,
* absent NULL
* }
* ```
*/
export type InvokeId = {
present: INTEGER;
} | {
absent: NULL;
};
/**
* @summary Decodes an ASN.1 element into a(n) InvokeId
* @function
* @param {_Element} el The element being decoded.
* @returns {InvokeId} The decoded data structure.
*/
export declare function _decode_InvokeId(el: _Element): InvokeId;
/**
* @summary Encodes a(n) InvokeId into an ASN.1 Element.
* @function
* @param value The element being encoded.
* @param elGetter A function that can be used to get new ASN.1 elements.
* @returns {_Element} The InvokeId, encoded as an ASN.1 Element.
*/
export declare function _encode_InvokeId(value: InvokeId, elGetter: $.ASN1Encoder<InvokeId>): _Element;
//# sourceMappingURL=InvokeId.ta.d.mts.map