MassMapWriter

Trait MassMapWriter 

Source
pub trait MassMapWriter {
    // Required method
    fn write_all_at(&self, data: &[u8], offset: u64) -> Result<()>;
}
Expand description

Trait representing positional writers suitable for massmap serialization.

Writers must support writing arbitrary byte slices at fixed offsets without altering shared state; this is satisfied by FileExt handles on both Unix and Windows.

Required Methods§

Source

fn write_all_at(&self, data: &[u8], offset: u64) -> Result<()>

Writes data at the given absolute offset.

Implementors§

Source§

impl<T: FileExt> MassMapWriter for T

Available on Unix only.