Function bincode::decode_from_slice
source · [−]pub fn decode_from_slice<'a, D: BorrowDecode<'a>, C: Config>(
src: &'a [u8],
config: C
) -> Result<(D, usize), DecodeError>
Expand description
Attempt to decode a given type D
from the given slice.
See the config module for more information on configurations.