pub fn decode<'b, T>(bytes: &'b [u8]) -> Result<T, Error>where
    T: Decode<'b>,