pub fn finalize(&mut self) -> io::Result<()> {
        self.finalized = true;
        let pos = self.inner.pos();
        self.inner.seek(self.offset)?;
        let sz = (pos - self.offset) as u32;
        sz.to_bytes(&mut self.inner)?;
        self.inner.seek(pos)?;
        Ok(())
    }
/// Finalize the box: seek back to the header and write the size.
///
/// If you don't call this explicitly, it is done automatically when the
/// BoxWriter is dropped. Any I/O errors will result in panics.
Finalize the box: seek back to the header and write the size.
If you don't call this explicitly, it is done automatically when the
BoxWriter is dropped. Any I/O errors will result in panics.
Finalize the box : seek back to the header and write the size . If you don ' t call this explicitly it is done automatically when the BoxWriter is dropped . Any I / O errors will result in panics .
pub fn finalize(&mut self) -> io::Result<()> {
        self.finalized = true;
        let pos = self.inner.pos();
        self.inner.seek(self.offset)?;
        let sz = (pos - self.offset) as u32;
        sz.to_bytes(&mut self.inner)?;
        self.inner.seek(pos)?;
        Ok(())
    }
pub fn finalize ( & mut self ) -> io :: Result < ( ) > { self . finalized = true ; let pos = self . inner . pos ( ) ; self . inner . seek ( self . offset ) ? ; let sz = ( pos - self . offset ) as u32 ; sz . to_bytes ( & mut self . inner ) ? ; self . inner . seek ( pos ) ? ; Ok ( ( ) ) }
Finalize the box: seek back to the header and write the size.
Finalize the box : seek back to the header and write the size .
&mut self
&mut self