DriftTexture · function

decodeOverlayJournal

Read a journal back. Null where the bytes are not one.

Explained in DriftTexture.

function decodeOverlayJournal(bytes: Uint8Array): OverlayJournal | null
import { decodeOverlayJournal } from '@driftengine/texture';

Parameters

ParameterTypeDescription
bytesUint8Array

In depth

Null rather than a partial journal: a replay against half a log is a session that diverges partway through for no visible reason, which is worse than one that refuses to start.