package
0.0.1
Repository: https://github.com/annchain/vm.git
Documentation: pkg.go.dev

# Packages

Package hexutil implements hex encoding with 0x prefix.

# Functions

No description provided by the author
bigUint64 returns the integer casted to a uint64 and returns whether it overflowed in the process.
Bytes2Hex returns the hexadecimal encoding of d.
calculates the memory size required for a step.
CopyBytes returns an exact copy of the provided bytes.
FromHex returns the bytes represented by the hexadecimal string s.
getData returns a slice from the data based on the start and size and pads up to size with zero's.
getDataBig returns a slice from the data based on the start and size and pads up to size with zero's.
Hex2Bytes returns the bytes represented by the hexadecimal string str.
Hex2BytesFixed returns bytes of a specified fixed length flen.
LeftPadBytes zero-pads slice to the left up to length l.
RightPadBytes zero-pads slice to the right up to length l.
ToHex returns the hex representation of b, prefixed with '0x'.
ToHexArray creates a array of hex-string based on []byte.
toWordSize returns the ceiled word size required for memory expansion.

# Variables

Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.

# Type aliases

StorageSize is a wrapper around a float value that supports user friendly formatting.