pub fn with_capacity(capacity: usize) -> Buffer {
    let mut v = Vec::with_capacity(capacity);
    v.extend(repeat(0).take(capacity));
    Buffer {
      memory:   v,
      capacity: capacity,
      position: 0,
      end:      0
    }
  }
/// allocates a new buffer of maximum size `capacity`
allocates a new buffer of maximum size `capacity`
allocates a new buffer of maximum size ` capacity `
pub fn with_capacity(capacity: usize) -> Buffer {
    let mut v = Vec::with_capacity(capacity);
    v.extend(repeat(0).take(capacity));
    Buffer {
      memory:   v,
      capacity: capacity,
      position: 0,
      end:      0
    }
  }
pub fn with_capacity ( capacity : usize ) -> Buffer { let mut v = Vec :: with_capacity ( capacity ) ; v . extend ( repeat ( 0 ) . take ( capacity ) ) ; Buffer { memory : v , capacity : capacity , position : 0 , end : 0 } }
allocates a new buffer of maximum size `capacity`
allocates a new buffer of maximum size ` capacity `
capacity
usize
capacity
usize