pub enum BinaryConstants {}
Expand description
Constant values for the binary format header.
The binary header is magic + version info + table count.
Implementations§
source§impl BinaryConstants
impl BinaryConstants
sourcepub const DIEM_MAGIC_SIZE: usize = 4usize
pub const DIEM_MAGIC_SIZE: usize = 4usize
The blob that must start a binary.
pub const DIEM_MAGIC: [u8; 4] = _
sourcepub const HEADER_SIZE: usize = 9usize
pub const HEADER_SIZE: usize = 9usize
The DIEM_MAGIC
size, 4 byte for major version and 1 byte for table count.
sourcepub const TABLE_HEADER_SIZE: u8 = 9u8
pub const TABLE_HEADER_SIZE: u8 = 9u8
A (Table Type, Start Offset, Byte Count) size, which is 1 byte for the type and 4 bytes for the offset/count.