Function createCursor

  • Create a cursor for the given tree. If the tree is not empty, the cursor is initialized at the 0th index of the root entry. Otherwise, the index is -1 and the cursor is set to done.

    Parameters

    • blockstore: Blockstore<{}, {}, {}, {}, {}, {}, {}, {}>
    • tree: ProllyTree

    Returns Cursor