fn read_uncompressed_block(
reader: &mut BufReader<File>,
block: &ModuleBlockEntry,
data: &mut [u8],
) -> Result<()>
Expand description
Reads an uncompressed block of data from the file.
This function reads an uncompressed block directly from the file and copies it into the appropriate section of the output buffer.
§Arguments
reader
- A mutable reference to aBufReader<File>
from which to read the data.block
- A reference to theModuleBlockEntry
containing metadata about the block.data
- A mutable slice where the uncompressed data will be stored.
§Errors
- If the reader fails to read the exact number of bytes
ReadError