Trait holochain::prelude::kitsune_p2p::dependencies::kitsune_p2p_types::dependencies::lair_keystore_api::dependencies::hc_seed_bundle::dependencies::rmp_serde::decode::ReadSlice
pub trait ReadSlice<'de>: Read {
fn read_slice<'a>(
&'a mut self,
len: usize
) -> Result<Reference<'de, 'a, [u8]>, Error>;
}
Expand description
Extends the Read
trait by allowing to read slices directly by borrowing bytes.
Used to allow zero-copy reading.