# Functions
CopySlice returns a copy of a passed byte slice.
DebugTrace allows a traceback to be generated that includes a file name, a line number, the error message, and an optional string.
DeleteValue removes the value for key in the database that is safe for use.
Epoch returns the epoch for the corresponding height.
ForceSliceToLength will return a byte slice of size length.
GetInt64 will retrieve an int64 value in the database.
GetObjSize returns the size of a marshalled capnproto object.
GetValue returns a value from the database that is safe for use.
MarshalInt64 will marshal an int64 object.
MarshalUint16 will marshal an uint16 object.
MarshalUint32 will marshal an uint32 object.
MarshalUint64 will marshal a uint64 object.
OpenBadger opens a badgerdb database and closes the db when closeChan returns a struct{}{}.
RandomBytes will return a byte slice of num random bytes using crypto rand.
SetInt64 will set an int64 value in the database.
SetValue sets the value for key in the database that is safe for use.
SortKVs allows a pair of slices, one containing keys and one containing values to be sorted by treating each key as a big.Int and preserving the relationship between keys and values during the sort.
UnmarshalInt64 will unmarshal an int64 object.
UnmarshalUint16 will unmarshal an uint16 object.
UnmarshalUint32 will unmarshal an uint32 object.
UnmarshalUint64 will unmarshal a uint64 object.
ValidateHash checks whether or not hsh has the correct length.