rmapi-js
    Preparing search index...

    Class BlocksPage

    a version 6 page as the blocks it was read from, in file order

    Index
    blocks: Block[]

    every block, in file order

    • get header(): Uint8Array

      the header as read, a new array each call

      Returns Uint8Array

    • get trailing(): Uint8Array

      the bytes after the last block, a new array each call

      Returns Uint8Array

    • the layers, items and typed text the page shows; a ResolveError if the items' neighbors do not give one order

      Returns Scene

    • the ids in a node's sequence in order, erased items included, or none for an unknown node; a ResolveError if the items' neighbors do not give one order

      Parameters

      Returns CrdtId[]

    • the page as bytes

      Returns Uint8Array

    • read a version 6 page; a ReadError if the bytes do not start with a version 6 header or hold more than MAX_BLOCKS blocks

      Parameters

      • bytes: Uint8Array

      Returns BlocksPage