Documentation ¶
Index ¶
- func ByteWidth(b []byte) int
- func DecodeUint64FromString(enc string) (res uint64)
- func EncodeUint64ToByteBuf(num uint64, buf []byte) (n int)
- func EncodeUint64ToString(num uint64) string
- func EncodeUint64ToStringBuf(num uint64, buf []byte) string
- func Len(b []byte) int
- func Pack(data []uint64) []byte
- func Uint64At(b []byte, at int, neededBytes int) uint64
- func Unpack(b []byte) []uint64
- func UnpackInto(b []byte, res []uint64) []uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteWidth ¶
ByteWidth returns the amount of bytes used to encode each element in the input from the encoded byte slice
func DecodeUint64FromString ¶
DecodeUint64FromString converts a string representation of a uint64 back to its numeric representation
func EncodeUint64ToByteBuf ¶
EncodeUint64ToByteBuf converts a uint64 to the smallest possible byte representation using only alphanumeric characters (compatible e.g. with filesystem limitations) using a buffer (must have sufficient size
func EncodeUint64ToString ¶
EncodeUint64ToString converts a uint64 to the smallest possible strinng representation using only alphanumeric characters (compatible e.g. with filesystem limitations)
func EncodeUint64ToStringBuf ¶
EncodeUint64ToStringBuf converts a uint64 to the smallest possible strinng representation using only alphanumeric characters (compatible e.g. with filesystem limitations) using a buffer (must have sufficient size
func Pack ¶
Pack compresses a slice of uint64 values into a byte slice using the minimal possible number of bytes to represent all values in the input slice. The first byte of the output is reserved to hold the byte with for decompression
func Uint64At ¶
Uint64At returns the decoded singular value from the provided slice at a given index from the original slice
func Unpack ¶
Unpack decompresses a previously compressed data slice into the original slice of uint64 values
func UnpackInto ¶
UnpackInto decompresses a compressed byte slice into a pre-existing slice of uint64 values (which will be allocated / grown in case its capacity is insufficient)
Types ¶
This section is empty.