pub struct IsoReadContext {
pub chunk_lbas: [(u64, u64); 16],
pub chunk_sizes: [u64; 16],
pub num_chunks: usize,
pub total_size: u64,
}Expand description
Read context for passing to boot/kernel loader
This is a simpler structure that can be passed across module boundaries without requiring the full ChunkReader.
Fields§
§chunk_lbas: [(u64, u64); 16]Partition LBAs for each chunk (start, end)
chunk_sizes: [u64; 16]Data size in each chunk
num_chunks: usizeNumber of valid chunks
total_size: u64Total ISO size
Implementations§
Source§impl IsoReadContext
impl IsoReadContext
Sourcepub fn from_manifest(manifest: &IsoManifest) -> Self
pub fn from_manifest(manifest: &IsoManifest) -> Self
Create from a manifest
Sourcepub fn from_reader(reader: &ChunkReader) -> Self
pub fn from_reader(reader: &ChunkReader) -> Self
Create from a ChunkReader
Trait Implementations§
Source§impl Clone for IsoReadContext
impl Clone for IsoReadContext
Source§fn clone(&self) -> IsoReadContext
fn clone(&self) -> IsoReadContext
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for IsoReadContext
impl RefUnwindSafe for IsoReadContext
impl Send for IsoReadContext
impl Sync for IsoReadContext
impl Unpin for IsoReadContext
impl UnwindSafe for IsoReadContext
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