Struct msgp::Decoder [] [src]

pub struct Decoder {
    // some fields omitted
}

A streaming Msgp decoder.

Methods

impl Decoder
[src]

fn new() -> Self

fn feed(&mut self, buf: &[u8]) -> Result<usize>

fn read(&mut self) -> Option<Vec<u8>>

Reads a decoded massage buffer, will return None if no buffer decoded.

fn buffer_len(&self) -> usize

Returns the buffer's length that wait for decoding. It usually is 0. Non-zero means that decoder need more buffer.

fn result_len(&self) -> usize

Returns decoded massages count. The decoded messages will be hold by decoder, until you read them.

Trait Implementations

impl Debug for Decoder
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.