Home > tsbuffer > TSBuffer > encode
编码
Signature:
encode(value: any, schemaOrId: string | TSBufferSchema, options?: EncodeOptions): EncodeOutput;
Parameter | Type | Description |
---|---|---|
value | any | 要编码的值 |
schemaOrId | string | TSBufferSchema | Schema 或 SchemaID,例如a/b.ts 下的Test 类型,其ID为a/b/Test |
options | EncodeOptions | (Optional) |
Returns: