DocsReference@proto-kit/commonClassesInMemoryLinkedLeafStore

@proto-kit/commonDocs


Documentation / @proto-kit/common / InMemoryLinkedLeafStore

Class: InMemoryLinkedLeafStore

Implements

Constructors

new InMemoryLinkedLeafStore()

new InMemoryLinkedLeafStore(): InMemoryLinkedLeafStore

Returns

InMemoryLinkedLeafStore

Properties

leaves

leaves: object = {}

Index Signature

[key: string]: object

Defined in

packages/common/src/trees/lmt/InMemoryLinkedLeafStore.ts:4


maximumIndex?

optional maximumIndex: bigint

Defined in

packages/common/src/trees/lmt/InMemoryLinkedLeafStore.ts:8

Methods

getLeaf()

getLeaf(path): undefined | object

Parameters

path: bigint

Returns

undefined | object

Implementation of

LinkedLeafStore.getLeaf

Defined in

packages/common/src/trees/lmt/InMemoryLinkedLeafStore.ts:10


getMaximumIndex()

getMaximumIndex(): undefined | bigint

Returns

undefined | bigint

Implementation of

LinkedLeafStore.getMaximumIndex

Defined in

packages/common/src/trees/lmt/InMemoryLinkedLeafStore.ts:29


getPreviousLeaf()

getPreviousLeaf(path): undefined | object

Parameters

path: bigint

Returns

undefined | object

Implementation of

LinkedLeafStore.getPreviousLeaf

Defined in

packages/common/src/trees/lmt/InMemoryLinkedLeafStore.ts:34


setLeaf()

setLeaf(index, value): void

Parameters

index: bigint

value: LinkedLeaf

Returns

void

Implementation of

LinkedLeafStore.setLeaf

Defined in

packages/common/src/trees/lmt/InMemoryLinkedLeafStore.ts:16