@yorkie-js/sdk
    Preparing search index...

    Interface StoredDoc

    StoredDoc is everything a backend holds for one document: a base snapshot, the changes appended since it, and a small mutable header.

    interface StoredDoc {
        changes: StoredChange[];
        meta?: Uint8Array<ArrayBufferLike>;
        snapshot: Uint8Array;
    }
    Index

    Properties

    changes: StoredChange[]

    Changes appended since the snapshot, ascending by clientSeq.

    meta?: Uint8Array<ArrayBufferLike>

    Checkpoint and changeID as of the last sync. Absent until the first one. Held apart from the snapshot because a sync has to advance it constantly while the snapshot stays put.

    snapshot: Uint8Array

    A Document.toBytes() envelope.