encoding

Methods

static readModel(decoder, transaction, store)

Parameters:
Name Type Description
decoder decoding.Decoder
transaction Transaction
store StructStore

static writeModel(encoder, store, targetStateopt)

Parameters:
Name Type Attributes Description
encoder encoding.Encoder
store StructStore
targetState Map.<number, number> <optional>

The state of the target that receives the update. Leave empty to write all known structs

inner writeStructs(encoder, structs, client, clock)

Parameters:
Name Type Description
encoder encoding.Encoder
structs Array.<AbstractStruct>

All structs by client

client number
clock number

write structs starting with ID(client,clock)