Constructors
constructor
- new Encoder(options?, writer?): Encoder
Methods
clean
- clean(): void
Returns void
encode
- encode(value): this
Returns this
encodeArray
- encodeArray(value): this
Returns this
encodeBoolean
- encodeBoolean(value): this
Returns this
encodeBytes
- encodeBytes(value): this
Returns this
encodeDate
- encodeDate(value): this
Returns this
encodeDouble
- encodeDouble(value): this
Returns this
encodeInteger
- encodeInteger(value): this
Returns this
encodeMap
- encodeMap(value): this
Parameters
- value: {
[key: string]: any | null | undefined;
}[key: string]: any | null | undefined
Returns this
encodeNull
- encodeNull(): this
Returns this
encodeNumber
- encodeNumber(value): this
Returns this
encodeObject
- encodeObject(value): this
Returns this
encodeRegExp
- encodeRegExp(value): this
Returns this
encodeSimple
- encodeSimple(value): this
Returns this
encodeString
- encodeString(value): this
Returns this
encodeUndefined
- encodeUndefined(): this
Returns this
finish
- finish(): Uint8Array
Returns Uint8Array
reset
- reset(): this
Returns this
Encoder encodes values into CBOR format.