pub fn write_out_of_line<F>(&mut self, len: usize, f: F) -> Result<()>
    where
        F: FnOnce(&mut Encoder<'_>) -> Result<()>,
    {
        let old_offset = self.offset;
        self.offset = self.buf.len();
        // Create space for the new data
        self.reserve_out_of_line(len);
        f(self)?;
        self.offset = old_offset;
        Ok(())
    }
/// Runs the provided closure inside an encoder modified
/// to write the data out-of-line.
///
/// Once the closure has completed, this function resets the offset
/// to where it was at the beginning of the call.
Runs the provided closure inside an encoder modified
to write the data out-of-line.

Once the closure has completed, this function resets the offset
to where it was at the beginning of the call.
Runs the provided closure inside an encoder modified to write the data out - of - line . Once the closure has completed this function resets the offset to where it was at the beginning of the call .
pub fn write_out_of_line<F>(&mut self, len: usize, f: F) -> Result<()>
    where
        F: FnOnce(&mut Encoder<'_>) -> Result<()>,
    {
        let old_offset = self.offset;
        self.offset = self.buf.len();
        // Create space for the new data
        self.reserve_out_of_line(len);
        f(self)?;
        self.offset = old_offset;
        Ok(())
    }
pub fn write_out_of_line < F > ( & mut self , len : usize , f : F ) -> Result < ( ) > where F : FnOnce ( & mut Encoder < ' _ > ) -> Result < ( ) > , { let old_offset = self . offset ; self . offset = self . buf . len ( ) ; // Create space for the new data self . reserve_out_of_line ( len ) ; f ( self ) ? ; self . offset = old_offset ; Ok ( ( ) ) }
Runs the provided closure inside an encoder modified
to write the data out-of-line.
Runs the provided closure inside an encoder modified to write the data out - of - line .
&mut self
len
usize
f
F