pub fn reserve_int<Err: From<BitError>, F: Fn(&mut BitWriteStream<E>) -> Result<u64, Err>>(
        &mut self,
        count: usize,
        body_fn: F,
    ) -> Result<(), Err> {
        let start = self.bit_len();
        self.write_int(0u64, count)?;

        let head_int = body_fn(self)?;
        self.buffer.set_at(start, head_int, count);

        Ok(())
    }
/// Reserve the length to write an integer
Reserve the length to write an integer
Reserve the length to write an integer
pub fn reserve_int<Err: From<BitError>, F: Fn(&mut BitWriteStream<E>) -> Result<u64, Err>>(
        &mut self,
        count: usize,
        body_fn: F,
    ) -> Result<(), Err> {
        let start = self.bit_len();
        self.write_int(0u64, count)?;
        let head_int = body_fn(self)?;
        self.buffer.set_at(start, head_int, count);
        Ok(())
    }
pub fn reserve_int < Err : From < BitError > , F : Fn ( & mut BitWriteStream < E > ) -> Result < u64 , Err > > ( & mut self , count : usize , body_fn : F , ) -> Result < ( ) , Err > { let start = self . bit_len ( ) ; self . write_int ( 0u64 , count ) ? ; let head_int = body_fn ( self ) ? ; self . buffer . set_at ( start , head_int , count ) ; Ok ( ( ) ) }
Reserve the length to write an integer
Reserve the length to write an integer
&mut self
count
usize
body_fn
F
&mut self
count
usize
body_fn
F