Skip to main content

write_disk

Function write_disk 

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

Writes sectors to the world’s block device from data.

Returns the number of bytes written, clamped to the disk capacity and to the length of data.