Expand description
Various utility functions.
Structs§
- Nil
- A Nil SMT node.
Functions§
- bytes_
to_ usize - Reads
byte_num
bytes frombytes
slice starting atbegin
index and interprets them as a usize in little-ending byte order. - generate_
sorted_ index_ value_ pairs - Generates a set of random pairs of tree indexes and values. The function intended for use in testing and benchmarking code.
- print_
output - Prints out the structure of the provided
tree
, which makes it visually easy to see the placement of leaf, padding, and internal nodes. - set_
pos_ best Deprecated - set_
pos_ worst Deprecated - tree_
index_ from_ u64 - Convert a u64 to TreeIndex.
- usize_
to_ bytes - Converts the provided
num
into the specified number of bytes in little-endian byte order.