Module avalanche_types::packer
source · Modules
Structs
Packer packs and unpacks the underlying bytes array.
ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/utils/wrappers#Packer
ref. https://doc.rust-lang.org/1.7.0/book/mutability.html
ref. https://doc.rust-lang.org/std/cell/struct.Cell.html
Constants
number of bytes per bool
number of bytes per byte
8-bit unsigned integer, so the length is 1-byte
number of bytes per short
16-bit unsigned integer, so the length is 2-byte
number of bytes per int
32-bit unsigned integer, so the length is 4-byte
number of bytes per long
64-bit unsigned integer, so the length is 8-byte