Documentation ¶
Overview ¶
Package helpers for toolkits
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToUint64 ¶
BytesToUint64 converts a byte slice to a slice of uint64 values. Each 8 bytes in the byte slice are decoded as a single uint64 value in big-endian order. The resulting slice of uint64 values can be used to retrieve the original uint64 values from the byte slice.
Parameters: - buf: a byte slice containing the encoded uint64 values.
Returns: - a slice of uint64 values decoded from the byte slice.
func Uint64ToBytes ¶
Uint64ToBytes converts a slice of uint64 values to a byte slice. Each uint64 value is encoded as 8 bytes in big-endian order. The resulting byte slice can be used to store the uint64 values in a binary format.
Parameters: - ints: a slice of uint64 values to be converted to bytes.
Returns: - a byte slice containing the encoded uint64 values.
Types ¶
This section is empty.