# Functions
Bytes1 returns integer x to bytes in little-endian format, x.to_bytes(1, 'little').
Bytes2 returns integer x to bytes in little-endian format, x.to_bytes(2, 'little').
Bytes3 returns integer x to bytes in little-endian format, x.to_bytes(3, 'little').
Bytes32 returns integer x to bytes in little-endian format, x.to_bytes(32, 'little').
Bytes4 returns integer x to bytes in little-endian format, x.to_bytes(4, 'little').
Bytes8 returns integer x to bytes in little-endian format, x.to_bytes(8, 'little').
BytesToEpochBigEndian conversion.
BytesToSlotBigEndian conversion.
BytesToUint64BigEndian conversion.
ClearBit clears the index `i` of bitlist `b`.
Copy2dBytes will copy and return a non-nil 2d byte array, otherwise it returns nil.
EpochToBytesBigEndian conversion.
EpochToBytesLittleEndian conversion.
FromBool is a convenience method for converting a bool to a byte.
FromBytes2 returns an integer which is stored in the little-endian format(2, 'little') from a byte array.
FromBytes4 returns an integer which is stored in the little-endian format(4, 'little') from a byte array.
FromBytes48 is a convenience method for converting a fixed-size byte array to a byte slice.
FromBytes48Array is a convenience method for converting an array of fixed-size byte arrays to an array of byte slices.
FromBytes8 returns an integer which is stored in the little-endian format(8, 'little') from a byte array.
HighestBitIndex returns the index of the highest bit set from bitlist `b`.
HighestBitIndexAt returns the index of the highest bit set from bitlist `b` that is at `index` (inclusive).
IsHex checks whether the byte array is a hex number prefixed with '0x'.
MakeEmptyBitlists returns an empty bitlist with input size `i`.
PadTo pads a byte slice to the given size.
ReverseBytes32Slice will reverse the provided slice's order.
SafeCopyBytes will copy and return a non-nil byte array, otherwise it returns nil.
SetBit sets the index `i` of bitlist `b` to 1.
SlotToBytesBigEndian conversion.
ToBool is a convenience method for converting a byte to a bool.
ToBytes returns integer x to bytes in little-endian format at the specified length.
ToBytes32 is a convenience method for converting a byte slice to a fix sized 32 byte array.
ToBytes4 is a convenience method for converting a byte slice to a fix sized 4 byte array.
ToBytes48 is a convenience method for converting a byte slice to a fix sized 48 byte array.
ToBytes64 is a convenience method for converting a byte slice to a fix sized 64 byte array.
ToLowInt64 returns the lowest 8 bytes interpreted as little endian.
Trunc truncates the byte slices to 6 bytes.
Uint64ToBytesBigEndian conversion.
Uint64ToBytesLittleEndian conversion.