#[repr(C)]pub struct FfsFileHeader2 {
pub name: Guid,
pub integrity_check: u16,
pub type: FvFileType,
pub attributes: FfsFileAttributes,
pub size: [u8; 3],
pub state: FfsFileState,
pub extended_size: u32,
}Expand description
File Header 2 for files larger than 16Mb, define in [UEFI-PI Spec] section 2.2.3
All FFS files begin with a header that is aligned on an 8-byteboundry with respect to the beginning of the firmware volume. FFS files can contain the following parts: Header and Data. It is possible to create a file that has only a header and no data, which consumes 24 bytes of space. This type of file is known as a zero-length file. If the file contains data, the data immediately follows the header. The format of the data within a file is defined by the Type field in the header, either EFI_FFS_FILE_HEADER or EFI_FFS_FILE_HEADER2. If the file length is bigger than 16MB, EFI_FFS_FILE_HEADER2 must be used.
Fields§
§name: Guid§integrity_check: u16§type: FvFileType§attributes: FfsFileAttributes§size: [u8; 3]§state: FfsFileState§extended_size: u32Implementations§
Trait Implementations§
Source§impl Clone for FfsFileHeader2
impl Clone for FfsFileHeader2
Source§fn clone(&self) -> FfsFileHeader2
fn clone(&self) -> FfsFileHeader2
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FfsFileHeader2
impl Debug for FfsFileHeader2
impl Copy for FfsFileHeader2
Auto Trait Implementations§
impl Freeze for FfsFileHeader2
impl RefUnwindSafe for FfsFileHeader2
impl Send for FfsFileHeader2
impl Sync for FfsFileHeader2
impl Unpin for FfsFileHeader2
impl UnwindSafe for FfsFileHeader2
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more