package
0.3.10
Repository: https://github.com/prysmaticlabs/go-ethereum.git
Documentation: pkg.go.dev

# Functions

Bytes1 returns integer x to bytes in little-endian format, x.to_bytes(1, 'big').
Bytes2 returns integer x to bytes in little-endian format, x.to_bytes(2, 'big').
Bytes3 returns integer x to bytes in little-endian format, x.to_bytes(3, 'big').
Bytes32 returns integer x to bytes in little-endian format, x.to_bytes(8, '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').
ClearBit clears the index `i` of bitlist `b`.
Copy2dBytes will copy and return a non-nil 2d byte array, otherwise it returns nil.
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.
FromBytes32 is a convenience method for converting a fixed-size byte array to a byte slice.
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).
LowerThan returns true if byte slice x is lower than byte slice y.
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.
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.
ToBytes8 is a convenience method for converting a byte slice to a fix sized 8 byte array.
ToBytes96 is a convenience method for converting a byte slice to a fix sized 96 byte array.
ToLowInt64 returns the lowest 8 bytes interpreted as little endian.
Trunc truncates the byte slices to 6 bytes.
Xor xors the bytes in x and y and returns the result.