pub fn from_slice(data: &[u8]) -> Buffer {
    Buffer {
      memory:   Vec::from(data),
      capacity: data.len(),
      position: 0,
      end:      data.len()
    }
  }
/// allocates a new buffer containing the slice `data`
///
/// the buffer starts full, its available data size is exactly `data.len()`
allocates a new buffer containing the slice `data`
the buffer starts full, its available data size is exactly `data.len()`
allocates a new buffer containing the slice ` data ` the buffer starts full its available data size is exactly ` data . len () `
pub fn from_slice(data: &[u8]) -> Buffer {
    Buffer {
      memory:   Vec::from(data),
      capacity: data.len(),
      position: 0,
      end:      data.len()
    }
  }
pub fn from_slice ( data : & [ u8 ] ) -> Buffer { Buffer { memory : Vec :: from ( data ) , capacity : data . len ( ) , position : 0 , end : data . len ( ) } }
allocates a new buffer containing the slice `data`
the buffer starts full, its available data size is exactly `data.len()`
allocates a new buffer containing the slice ` data ` the buffer starts full its available data size is exactly ` data . len () `
data
&[u8]
data
&[u8]