DriftTexture · function
decodeOverlayJournal
Read a journal back. Null where the bytes are not one.
Explained in DriftTexture.
function decodeOverlayJournal(bytes: Uint8Array): OverlayJournal | nullimport { decodeOverlayJournal } from '@driftengine/texture';Parameters
| Parameter | Type | Description |
|---|---|---|
bytes | Uint8Array |
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.