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;
        self.stable_mem.set_length(self.stable_mem_offset);
    }
/// 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;
        self.stable_mem.set_length(self.stable_mem_offset);
    }
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 ; self . stable_mem . set_length ( self . stable_mem_offset ) ; }
Write the buffer contents to stable memory.
Write the buffer contents to stable memory .
&mut self
&mut self