pub fn new(bytes: &'a [u8], cursor: &'a mut usize) -> Decoder<'a> {
        Decoder {
            bytes,
            cursor,
            limit: bytes.len(),
        }
    }
/// Creates a new decoder,
/// the cursor has to be a mutable pointer to support limits without copying
Creates a new decoder,
the cursor has to be a mutable pointer to support limits without copying
Creates a new decoder the cursor has to be a mutable pointer to support limits without copying
pub fn new(bytes: &'a [u8], cursor: &'a mut usize) -> Decoder<'a> {
        Decoder {
            bytes,
            cursor,
            limit: bytes.len(),
        }
    }
pub fn new ( bytes : & ' a [ u8 ] , cursor : & ' a mut usize ) -> Decoder < ' a > { Decoder { bytes , cursor , limit : bytes . len ( ) , } }
Creates a new decoder,
the cursor has to be a mutable pointer to support limits without copying
Creates a new decoder the cursor has to be a mutable pointer to support limits without copying
bytes
&'a [u8]
cursor
&'a mut usize