Constructors
constructor
- new Encoder(initSize?: number): Encoder
Accessors
output
- get output(): Uint8Array
Returns Uint8Array
size
- get size(): number
Returns number
Methods
prependRoom
- prependRoom(sizeofObject: number): Uint8Array
Returns Uint8Array
Room to write object.
prependTlv
- prependTlv(tlvType: number, ...tlvValue: Encodable[]): void
Returns void
- prependTlv(
tlvType: number,
omitEmpty: typeof OmitEmpty,
...tlvValue: Encodable[],
): void Returns void
prependTypeLength
- prependTypeLength(tlvType: number, tlvLength: number): void
Parameters
- tlvType: number
- tlvLength: number
Returns void
prependValue
- prependValue(...tlvValue: Encodable[]): void
Returns void
TLV encoder that accepts objects in reverse order.