pub trait ReadBytesAt {
// Required method
fn read_bytes_at(&self, offset: u64, size: usize) -> Result<Bytes>;
}
Expand description
Trait identical to ReadAt
but returning Bytes
instead of reading into a buffer.
This forwards to the underlying ReadAt
implementation except for Bytes
, &Bytes
, &mut Bytes
.