Skip to main content

read_disk

Function read_disk 

Source
pub fn read_disk(
    world_id: u64,
    sector: u64,
    out: &mut [u8],
) -> Result<usize, ()>
Expand description

Reads sectors from the world’s block device into out.

Returns the number of bytes copied, clamped to the disk capacity and to the length of out.