pub fn flush(&mut self) {
        self.stable_mem
            .write(&self.buffer[0..self.buffer_offset], self.stable_mem_offset);
        self.stable_mem_offset += u32::try_from(self.buffer_offset).unwrap();
        self.buffer_offset = 0;
    }
/// Write the buffer contents to stable memory.
Write the buffer contents to stable memory.
Write the buffer contents to stable memory .
pub fn flush(&mut self) {
        self.stable_mem
            .write(&self.buffer[0..self.buffer_offset], self.stable_mem_offset);
        self.stable_mem_offset += u32::try_from(self.buffer_offset).unwrap();
        self.buffer_offset = 0;
    }
pub fn flush ( & mut self ) { self . stable_mem . write ( & self . buffer [ 0 .. self . buffer_offset ] , self . stable_mem_offset ) ; self . stable_mem_offset += u32 :: try_from ( self . buffer_offset ) . unwrap ( ) ; self . buffer_offset = 0 ; }
Write the buffer contents to stable memory.
Write the buffer contents to stable memory .
&mut self
&mut self