Struct barc::BarcWriter [−][src]
pub struct BarcWriter<'a> { /* fields omitted */ }
Expand description
BARC file handle for write access.
Implementations
pub fn write(
&mut self,
rec: &dyn MetaRecorded,
strategy: &dyn CompressStrategy
) -> Result<u64, BarcError>
pub fn write(
&mut self,
rec: &dyn MetaRecorded,
strategy: &dyn CompressStrategy
) -> Result<u64, BarcError>
Write a new record, returning the record’s offset from the
start of the BARC file. The writer position is then advanced
to the end of the file, for the next write
.