morpheus_core::iso

Module reader

Source
Expand description

Chunk Reader

Reads ISO data from chunked partitions, presenting a unified view of the ISO as if it were a single contiguous file.

§Usage

let reader = ChunkReader::from_manifest(&manifest);

// Read arbitrary ranges (handles chunk boundaries transparently)
let mut buffer = [0u8; 4096];
let bytes_read = reader.read(block_io, offset, &mut buffer)?;

// Sequential reading with internal position tracking
reader.seek(0)?;
while reader.position() < reader.total_size() {
    let n = reader.read_next(block_io, &mut buffer)?;
    process(&buffer[..n]);
}

Structs§