uefi_raw/table/header.rs
1use super::Revision;
2
3/// The common header that all UEFI tables begin with.
4#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
5#[repr(C)]
6pub struct Header {
7 /// Unique identifier for this table.
8 pub signature: u64,
9 /// Revision of the spec this table conforms to.
10 pub revision: Revision,
11 /// The size in bytes of the entire table.
12 pub size: u32,
13 /// 32-bit CRC-32-Castagnoli of the entire table,
14 /// calculated with this field set to 0.
15 pub crc: u32,
16 /// Reserved field that must be set to 0.
17 pub reserved: u32,
18}