package
0.99.99-test-ignore
Repository: https://github.com/ava-labs/avalanchego.git
Documentation: pkg.go.dev

# Functions

TryPack2DBytes attempts to pack the value as a 2D byte slice.
TryPackAddr attempts to pack the value as a 20-byte sequence.
TryPackAddrList attempts to pack the value as a list of 20-byte sequences.
TryPackByte attempts to pack the value as a byte.
TryPackBytes attempts to pack the value as a list of bytes.
TryPackHash attempts to pack the value as a 32-byte sequence.
TryPackHashes attempts to pack the value as a list of 32-byte sequences.
TryPackInt attempts to pack the value as an int.
TryPackIP attempts to pack the value as an ip port pair.
TryPackIPList attempts to pack the value as an ip port pair list.
TryPackLong attempts to pack the value as a long.
TryPackShort attempts to pack the value as a short.
TryPackStr attempts to pack the value as a string.
TryUnpack2DBytes attempts to unpack the value as a 2D byte slice.
TryUnpackAddr attempts to unpack the value as a 20-byte sequence.
TryUnpackAddrList attempts to unpack the value as a list of 20-byte sequences.
TryUnpackByte attempts to unpack a value as a byte.
TryUnpackBytes attempts to unpack the value as a list of bytes.
TryUnpackHash attempts to unpack the value as a 32-byte sequence.
TryUnpackHashes attempts to unpack the value as a list of 32-byte sequences.
TryUnpackInt attempts to unpack a value as an int.
TryUnpackIP attempts to unpack the value as an ip port pair.
TryUnpackIPList attempts to unpack the value as an ip port pair list.
TryUnpackLong attempts to unpack a value as a long.
TryUnpackShort attempts to unpack a value as a short.
TryUnpackStr attempts to unpack the value as a string.

# Constants

BoolLen is the number of bytes per bool.
ByteLen is the number of bytes per byte...
IntLen is the number of bytes per int.
LongLen is the number of bytes per long.
MaxStringLen ...
ShortLen is the number of bytes per short.

# Structs

Errs ...
Packer packs and unpacks a byte array from/to standard values.