borrow_decode_from_slice_with_context

Function borrow_decode_from_slice_with_context 

Source
pub fn borrow_decode_from_slice_with_context<'a, Context, D: BorrowDecode<'a, Context>, C: Config>(
    src: &'a [u8],
    config: C,
    context: Context,
) -> Result<(D, usize), DecodeError>
Expand description

Attempt to decode a given type D from the given slice with Context. Returns the decoded output and the amount of bytes read.

See the config module for more information on configurations.