git ssb

0+

wanderer🌟 / js-dfinity-radix-tree



Tree: 231dafc7896dbb6490a92ca3cf0a6c29eacfda6f

Files: 231dafc7896dbb6490a92ca3cf0a6c29eacfda6f / docs / index.md

4442 bytesRaw

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

Table of Contents

constructor

index.js:18-25

Parameters

root

index.js:31-33

the root of the tree

Type: Buffer

get

index.js:44-48

gets a value given a key

Parameters

Returns Promise

set

index.js:98-101

stores a value at a given key returning the tree node that the value was saved in

Parameters

Returns Promise

delete

index.js:150-153

smContainer.js deletes a value at a given key

Parameters

Returns Promise

done

index.js:212-218

returns a promise that resolve when the tree is done with all of its writes

Returns Promise

flush

index.js:234-238

creates a merkle root for the current tree and stores the data persistently

Returns Promise

rootExists

index.js:250-258

Checks if a given root exists or not

Parameters

Returns Promise&lt;boolean>

emptyTreeState

index.js:279-281

returns the state of an empty tree

ArrayConstructor

index.js:287-289

returns an Uint1Array constructor which is used to represent keys

Returns object

index.js:296-298

returns a merkle link for some given data

Parameters

Returns Buffer

Built with git-ssb-web