Trait samply_symbols::FileByteSource
source · pub trait FileByteSource {
fn read_bytes_into(
&self,
buffer: &mut Vec<u8>,
offset: u64,
size: usize
) -> FileAndPathHelperResult<()>;
}Required Methods§
sourcefn read_bytes_into(
&self,
buffer: &mut Vec<u8>,
offset: u64,
size: usize
) -> FileAndPathHelperResult<()>
fn read_bytes_into(
&self,
buffer: &mut Vec<u8>,
offset: u64,
size: usize
) -> FileAndPathHelperResult<()>
Read size bytes at offset offset and append them to buffer.
If successful, buffer must have had its len increased exactly by size,
otherwise the caller may panic.