pub fn from_reader<T: DeserializeOwned, R: Read>(
reader: R,
) -> Result<T, Error<R::Error>>
Expand description
Deserializes as CBOR from a type with impl ciborium_io::Read
using a 4KB buffer on the stack.
If you want to deserialize faster at the cost of more memory, consider using
from_reader_with_buffer
with a larger buffer,
for example 64KB.