Skip to content

1681-engine / index / encodeSnapshotFrame

Function: encodeSnapshotFrame() ​

ts
function encodeSnapshotFrame<S>(snap): Uint8Array;

Defined in: src/net/snapshotCodec.ts:133

A snapshot as the server frames it: binary when it carries updates (see the layout above).

Type Parameters ​

Type Parameter
S extends SnapshotLike

Parameters ​

ParameterType
snapS

Returns ​

Uint8Array

Released under the MIT License.