Files: 8b3b6ad9bccab11efb8cdb0f5a71e03b011e8ee0 / docs / index.md
3178 bytesRaw
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
Table of Contents
constructor
Parameters
opts
opts.root
{object} a merkle root to a radix tree. If none, RadixTree will create an new root.opts.graph
{object} an instance of ipld-graph-builder alternitvlyopts.dag
can be usedopts.dag
{object} an instance if ipfs.dag. If there is noopts.graph
this will be used to create a new graph instance.
get
gets a value given a key
Parameters
key
any
Returns Promise
set
stores a value at a given key
Parameters
key
anyvalue
Returns Promise
delete
deletes a value at a given key
Parameters
key
any
Returns Promise
flush
creates a merkle root for the current tree and stores the data perstantly
Returns Promise
ArrayConstructor
returns an Uint1Array constructir which is used to repersent keys
Returns object
toTypedArray
converts a TypedArray or Buffer to an Uint1Array
Parameters
array
TypedArray the array to convert
Returns TypedArray
Built with git-ssb-web