Class Packr
Hierarchy
- Unpackr
- Packr (View Summary)
Index
Constructors
Methods
Properties
Methods
clearSharedData
decode
- decode(
messagePack: Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike>,
options?: UnpackOptions,
): any Parameters
- messagePack: Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike>
Optional
options: UnpackOptions
Returns any
encode
- encode(value: any, encodeOptions?: number): Buffer<ArrayBufferLike>
Parameters
- value: any
Optional
encodeOptions: number
Returns Buffer<ArrayBufferLike>
pack
- pack(value: any, encodeOptions?: number): Buffer<ArrayBufferLike>
Parameters
- value: any
Optional
encodeOptions: number
Returns Buffer<ArrayBufferLike>
unpack
- unpack(
messagePack: Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike>,
options?: UnpackOptions,
): any Parameters
- messagePack: Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike>
Optional
options: UnpackOptions
Returns any
unpackMultiple
- unpackMultiple(
messagePack: Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike>,
): any[] Parameters
- messagePack: Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike>
Returns any[]
- unpackMultiple(
messagePack: Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike>,
forEach: (value: any, start?: number, end?: number) => any,
): void Parameters
- messagePack: Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike>
- forEach: (value: any, start?: number, end?: number) => any
Returns void
useBuffer
- useBuffer(buffer: Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike>): void
Parameters
- buffer: Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike>
Returns void