#[repr(C)]pub struct FvBlockMap {
pub num_blocks: u32,
pub length: u32,
}Expand description
Firmware block map.
The block map is a run-length-encoded array of logical block definitions. This design allows a reasonable mechanism of describing the block layout of typical firmware devices. Each block can be referenced by its logical block address (LBA). The LBA is a zero-based enumeration of all of the blocks—i.e., LBA 0 is the first block, LBA 1 is the second block, and LBA n is the (n-1) device. The header is always located at the beginning of LBA 0.
Fields§
§num_blocks: u32§length: u32Implementations§
Trait Implementations§
Source§impl Clone for FvBlockMap
impl Clone for FvBlockMap
Source§fn clone(&self) -> FvBlockMap
fn clone(&self) -> FvBlockMap
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 FvBlockMap
impl Debug for FvBlockMap
Source§impl Default for FvBlockMap
impl Default for FvBlockMap
Source§fn default() -> FvBlockMap
fn default() -> FvBlockMap
Returns the “default value” for a type. Read more
Source§impl<'a> TryFromCtx<'a, Endian> for FvBlockMapwhere
FvBlockMap: 'a,
impl<'a> TryFromCtx<'a, Endian> for FvBlockMapwhere
FvBlockMap: 'a,
Source§impl<'a> TryIntoCtx<Endian> for &'a FvBlockMap
impl<'a> TryIntoCtx<Endian> for &'a FvBlockMap
Source§impl TryIntoCtx<Endian> for FvBlockMap
impl TryIntoCtx<Endian> for FvBlockMap
impl Copy for FvBlockMap
Auto Trait Implementations§
impl Freeze for FvBlockMap
impl RefUnwindSafe for FvBlockMap
impl Send for FvBlockMap
impl Sync for FvBlockMap
impl Unpin for FvBlockMap
impl UnwindSafe for FvBlockMap
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