Struct hdrhistogram::serialization::Deserializer
[−]
[src]
pub struct Deserializer { /* fields omitted */ }
Deserializer for all supported formats.
Since the serialization formats all include some magic bytes that allow reliable identification of the different formats, only one Deserializer implementation is needed.
Methods
impl Deserializer
[src]
pub fn new() -> Deserializer
[src]
Create a new deserializer.
pub fn deserialize<T: Counter, R: Read>(
&mut self,
reader: &mut R
) -> Result<Histogram<T>, DeserializeError>
[src]
&mut self,
reader: &mut R
) -> Result<Histogram<T>, DeserializeError>
Deserialize an encoded histogram from the provided reader.
Note that &[u8]
and Cursor
are convenient implementations of Read
if you have some
bytes already in slice or Vec
form.