pub fn from_reader<T: DeserializeOwned, R: Read>(reader: R) -> Result<T, Error>Expand description
Deserializes a value from a reader.
The reader is read to the end, it does not need to be buffered. The stream must contain exactly one value.
let value: Vec<u32> = deser_php::from_reader(&b"a:2:{i:0;i:1;i:1;i:2;}"[..]).unwrap();
assert_eq!(value, [1, 2]);