Versions in this module Expand all Collapse all v0 v0.5.0 Mar 23, 2021 Changes in this version + func CopySlice(v []byte) []byte + func DebugTrace(logger *logrus.Logger, err error, s ...string) + func DeleteValue(txn *badger.Txn, key []byte) error + func Epoch(height uint32) uint32 + func ForceSliceToLength(inSlice []byte, length int) []byte + func GetInt64(txn *badger.Txn, key []byte) (int64, error) + func GetObjSize(obj encoding.BinaryMarshaler) (int, error) + func GetValue(txn *badger.Txn, key []byte) ([]byte, error) + func MarshalInt64(v int64) []byte + func MarshalUint16(v uint16) []byte + func MarshalUint32(v uint32) []byte + func MarshalUint64(v uint64) []byte + func OpenBadger(closeChan <-chan struct{}, directoryName string, inMemory bool) (*badger.DB, error) + func RandomBytes(num int) ([]byte, error) + func SetInt64(txn *badger.Txn, key []byte, v int64) error + func SetValue(txn *badger.Txn, key []byte, value []byte) error + func SortKVs(keys [][]byte, values [][]byte) ([][]byte, [][]byte, error) + func UnmarshalInt64(v []byte) (int64, error) + func UnmarshalUint16(v []byte) (uint16, error) + func UnmarshalUint32(v []byte) (uint32, error) + func UnmarshalUint64(v []byte) (uint64, error) + func ValidateHash(hsh []byte) error