Interface: FlatBufferRootCodec<TTable, TJSON>

将单个根产品表与 JSON 相互转换的 codec。 Codec converting one root product table to and from JSON.

Type Parameters

TTable

TTable extends FlatBufferTableProtocol = FlatBufferTableProtocol

TJSON

TJSON = unknown

Properties

tableClass

tableClass: FlatBufferTableClass<TTable>

Methods

decode()

decode(table): TJSON

Parameters

table

TTable

Returns

TJSON


encode()

encode(builder, json): number

Parameters

builder

Builder

json

TJSON

Returns

number