pub fn read_buf_at(&self, buf: &mut [u8], offset: usize) -> Result<usize, String> {
    if offset + buf.len() > self.len() {
      return Err( "buffer no more space to read".to_string());
    }
    return self.read_at(buf, buf.len(), offset);
  }
/// From the offset specified by the offset, read the data of the length of buf.len() into buf. If there is not enough data after the offset in the buffer, an error will be returned
From the offset specified by the offset, read the data of the length of buf.len() into buf. If there is not enough data after the offset in the buffer, an error will be returned
From the offset specified by the offset read the data of the length of buf . len () into buf . If there is not enough data after the offset in the buffer an error will be returned
pub fn read_buf_at(&self, buf: &mut [u8], offset: usize) -> Result<usize, String> {
    if offset + buf.len() > self.len() {
      return Err( "buffer no more space to read".to_string());
    }
    return self.read_at(buf, buf.len(), offset);
  }
pub fn read_buf_at ( & self , buf : & mut [ u8 ] , offset : usize ) -> Result < usize , String > { if offset + buf . len ( ) > self . len ( ) { return Err ( " " . to_string ( ) ) ; } return self . read_at ( buf , buf . len ( ) , offset ) ; }
From the offset specified by the offset, read the data of the length of buf.len() into buf.
From the offset specified by the offset read the data of the length of buf . len () into buf .
&self
buf
&mut [u8]
offset
usize