Skip to main content

write_bif

Function write_bif 

Source
pub fn write_bif<W: Write>(
    writer: &mut W,
    bif: &Bif,
) -> Result<(), BifBinaryError>
Expand description

Writes a BIF archive to a writer.

ยงErrors

BifBinaryError::BzfFeatureDisabled when bif.container is BifContainer::Bzf and the crate was built without the bzf feature, raised before anything is written.

BifBinaryError::ValueOverflow when either entry count, a table offset or size, or the running data offset will not fit its u32, naming the field. BifBinaryError::Io when the writer fails, which can leave a partial archive.