ciborium::de

Function from_reader_with_buffer

Source
pub fn from_reader_with_buffer<T: DeserializeOwned, R: Read>(
    reader: R,
    scratch_buffer: &mut [u8],
) -> Result<T, Error<R::Error>>
where R::Error: Debug,
Expand description

Deserializes as CBOR from a type with impl ciborium_io::Read, using a caller-specific buffer as a temporary scratch space.