Documentation ¶
Index ¶
- func BytesPrefix(prefix []byte) ([]byte, []byte)
- func BytesToInt(b []byte) (int32, error)
- func BytesToInt64(b []byte) (int64, error)
- func BytesToString(b []byte) string
- func BytesToUint64(b []byte) (uint64, error)
- func Int64ToBytes(x int64) ([]byte, error)
- func IntToBytes(x int32) []byte
- func StringToBytes(s string) []byte
- func Uint64ToBytes(x uint64) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesPrefix ¶
BytesPrefix returns key range that satisfy the given prefix. This only applicable for the standard 'bytes comparer'.
func BytesToInt ¶
BytesToInt le bytes to int32, little endian
func BytesToInt64 ¶
BytesToInt64 le bytes to int64, little endian
func BytesToString ¶ added in v2.2.0
BytesToString converts byte slice to string without a memory allocation.
func BytesToUint64 ¶
BytesToUint64 le bytes to uint64, little endian
func Int64ToBytes ¶
Int64ToBytes int64 to le bytes, little endian
func StringToBytes ¶ added in v2.2.0
StringToBytes converts string to byte slice without a memory allocation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.