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