pub fn write_gff<W: Write>(
writer: &mut W,
gff: &Gff,
) -> Result<(), GffBinaryError>Expand description
Writes a GFF in binary V3.2 format.
ยงErrors
GffBinaryError::ValueOverflow when a table offset or size will not fit
its u32, naming the field. The whole layout is computed before anything
is written, so an overflow leaves the writer untouched.
GffBinaryError::LabelTooLong when a label exceeds the 16 bytes the
label table gives it, measured after encoding, and
GffBinaryError::TextEncoding when a label or string has no form in its
target encoding. GffBinaryError::UnsupportedLanguageEncoding for a
localized substring whose language id maps to no codepage.
GffBinaryError::InvalidData when the root struct does not build as
index 0, and GffBinaryError::Io when the writer fails, which can leave
a partial file.