pub trait ByteSource {
// Required methods
fn len(&self) -> u64;
fn read_at(&self, offset: u64, buf: &mut [u8]) -> Result<()>;
// Provided method
fn is_empty(&self) -> bool { ... }
}Required Methods§
Provided Methods§
Implementations on Foreign Types§
Source§impl ByteSource for Vec<u8>
impl ByteSource for Vec<u8>
Source§impl ByteSource for File
Available on non-WebAssembly only.
impl ByteSource for File
Available on non-WebAssembly only.