pub fn byte(&mut self) -> u8 {
        if self.buf.len() == 0 {
            panic("insufficient bytes");
        }
        let value = self.buf[0];
        self.buf = &self.buf[1..];
        value
    }
// decodes an uint8 from the byte buffer
decodes an uint8 from the byte buffer
decodes an uint8 from the byte buffer
pub fn byte(&mut self) -> u8 {
        if self.buf.len() == 0 {
            panic("insufficient bytes");
        }
        let value = self.buf[0];
        self.buf = &self.buf[1..];
        value
    }
pub fn byte ( & mut self ) -> u8 { if self . buf . len ( ) == 0 { panic ( " " ) ; } let value = self . buf [ 0 ] ; self . buf = & self . buf [ 1 .. ] ; value }
decodes an uint8 from the byte buffer
decodes an uint8 from the byte buffer
&mut self