Struct bincode::serde::Deserializer
[−]
[src]
pub struct Deserializer<'a, R: 'a> { // some fields omitted }
A Deserializer that reads bytes from a buffer.
This struct should rarely be used.
In most cases, prefer the decode_from
function.
let d = Deserializer::new(&mut some_reader, SizeLimit::new()); serde::Deserialize::deserialize(&mut deserializer); let bytes_read = d.bytes_read();
Methods
impl<'a, R: Read> Deserializer<'a, R>
fn new(r: &'a mut R, size_limit: SizeLimit) -> Deserializer<'a, R>
fn bytes_read(&self) -> u64
Returns the number of bytes read from the contained Reader.