pub fn read(&mut self, buf: &mut [u8]) -> Result<usize, StableMemoryError> {
        stable_read(self.offset as u32, buf);
        self.offset += buf.len();
        Ok(buf.len())
    }
/// Reads data from the stable memory location specified by an offset.
Reads data from the stable memory location specified by an offset.
Reads data from the stable memory location specified by an offset .
pub fn read(&mut self, buf: &mut [u8]) -> Result<usize, StableMemoryError> {
        stable_read(self.offset as u32, buf);
        self.offset += buf.len();
        Ok(buf.len())
    }
pub fn read ( & mut self , buf : & mut [ u8 ] ) -> Result < usize , StableMemoryError > { stable_read ( self . offset as u32 , buf ) ; self . offset += buf . len ( ) ; Ok ( buf . len ( ) ) }
Reads data from the stable memory location specified by an offset.
Reads data from the stable memory location specified by an offset .
&mut self
buf
&mut [u8]