Skip to content

1681-engine / index / decodeSnapshotFrame

Function: decodeSnapshotFrame() ​

ts
function decodeSnapshotFrame<S>(frame): S;

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

Reads a binary snapshot frame back into the same object a text frame parses to.

Type Parameters ​

Type Parameter
S extends SnapshotLike

Parameters ​

ParameterType
frameArrayBuffer | Uint8Array<ArrayBufferLike>

Returns ​

S

Released under the MIT License.