Struct yaz0::header::Yaz0Header
[−]
[src]
pub struct Yaz0Header { pub expected_size: usize, }
The header on a Yaz0 file.
Fields
expected_size: usize
Expected size of the decompressed file
Methods
impl Yaz0Header
[src]
pub fn new(expected_size: usize) -> Yaz0Header
[src]
pub fn parse<R>(reader: &mut R) -> Result<Yaz0Header, Error> where
R: Read + Seek,
[src]
R: Read + Seek,
Parses the header of a Yaz0 file, provided via the passed reader. Leaves the read head at the start of the data block.
pub fn write<W>(&self, writer: &mut W) -> Result<(), Error> where
W: Write,
[src]
W: Write,
Writes the header of a Yaz0 file to the passed writer. Leaves the write head at the start of the data block.