Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 801 Bytes

File metadata and controls

26 lines (16 loc) · 801 Bytes

Home > tsbuffer > TSBuffer > encode

TSBuffer.encode() method

编码

Signature:

encode(value: any, schemaOrId: string | TSBufferSchema, options?: EncodeOptions): EncodeOutput;

Parameters

Parameter Type Description
value any 要编码的值
schemaOrId string | TSBufferSchema Schema 或 SchemaID,例如a/b.ts下的Test类型,其ID为a/b/Test
options EncodeOptions

Returns:

EncodeOutput