pub type ZbiHeader = zbi_header_t;Expand description
Rust type generated from C-reference structure zbi_header_t.
It must correspond to following definition:
typedef struct {
// ZBI_TYPE_* constant.
zbi_type_t type;
// Size of the payload immediately following this header. This
// does not include the header itself nor any alignment padding
// after the payload.
uint32_t length;
// Type-specific extra data. Each type specifies the use of this
// field. When not explicitly specified, it should be zero.
uint32_t extra;
// Flags for this item.
zbi_flags_t flags;
// For future expansion. Set to 0.
uint32_t reserved0;
uint32_t reserved1;
// Must be ZBI_ITEM_MAGIC.
uint32_t magic;
// Must be the CRC32 of payload if ZBI_FLAGS_CRC32 is set,
// otherwise must be ZBI_ITEM_NO_CRC32.
uint32_t crc32;
} zbi_header_t;Aliased Type§
#[repr(C)]pub struct ZbiHeader {
pub type_: u32,
pub length: u32,
pub extra: u32,
pub flags: u32,
pub reserved0: u32,
pub reserved1: u32,
pub magic: u32,
pub crc32: u32,
}Fields§
§type_: u32§length: u32§extra: u32§flags: u32§reserved0: u32§reserved1: u32§magic: u32§crc32: u32