pub struct Buf { data: Vec<u8> }

impl Buf {
    pub fn len(&self) -> usize { self.data.len() }
    pub fn clear(&mut self) { self.data.clear(); }
}
