DARTFile.Branches

Data struct which contains the branches in sub-tree

Members

Functions

count
uint count()
dump
void dump()

Dumps the branches information

empty
bool empty()

Check if the branches has indices

fingerprint
Fingerprint fingerprint(size_t key)
index
Index index(uint key)

Get the index number of Leave at the leave number key

isSingle
bool isSingle()
opIndex
Leave opIndex(uint key)

Get the leave at key in the branches

opIndexAssign
void opIndexAssign(Leave leave, uint key)

Set the branch at leave-number key the leave

toHiBON
HiBON toHiBON(bool exclude_indices)

Creates a HiBON from a the branches

Properties

fingerprints
const(Fingerprint[]) fingerprints [@property getter]
indices
const(Index[]) indices [@property getter]

Variables

_dart_indices
DARTIndex[] _dart_indices;

Array of all the Leaves hashes

_fingerprints
Fingerprint[] _fingerprints;

Array of all the Leaves hashes

_indices
Index[] _indices;

Array of index pointer to BlockFile

merkleroot
Fingerprint merkleroot;

The sparsed Merkle root hash of the branches

Mixed In Members

From mixin HiBONRecordType

recordName
string recordName()

Get the record type name set by @recordType("name")

From mixin HiBONKeys

_keys
string[] _keys()