Skip to main content

write_volume

Function write_volume 

Source
pub fn write_volume(
    size: usize,
    page_size: usize,
    files: &[(u32, Vec<u8>)],
) -> Result<Vec<u8>, &'static str>
Expand description

Writes a volume of size bytes holding files, packed from the first page, the rest erased. Files must fit one page each.