Documentation ¶
Overview ¶
Package arrays provides various byte array utilities
Index ¶
- func Concat(arrays ...[]byte) []byte
- func Dump(arr []byte) string
- func Random(byteCount int) ([]byte, error)
- func Slice(arr []byte, count int) [][]byte
- func UInt32ToBytes(value uint32) []byte
- func UInt64ToBytes(value uint64) []byte
- func Unwrap(arrays [][]byte) []byte
- func Xor(left, right []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Concat ¶
Concat combine several arrays into single one, resulting slice = A1 | A2 | A3 | ... | An
func UInt32ToBytes ¶
UInt32ToBytes unwrap uint32 value to byte array of length 4 using big endian
func UInt64ToBytes ¶
UInt64ToBytes unwrap uint64 value to byte array of length 8 using big endian
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.