pub mod v04;
pub mod v1;
pub(crate) struct CountLength(u32);
impl std::io::Write for CountLength {
#[inline]
fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> {
self.write_all(buf)?;
Ok(buf.len())
}
#[inline]
fn flush(&mut self) -> std::io::Result<()> {
Ok(())
}
#[inline]
fn write_all(&mut self, buf: &[u8]) -> std::io::Result<()> {
self.0 += buf.len() as u32;
Ok(())
}
}