Skip to main content

MappedImageReader

Trait MappedImageReader 

Source
pub trait MappedImageReader {
    // Required methods
    fn read_exact(&self, range: Range<u64>) -> ParseResult<Vec<u8>>;
    fn captured_len(&self) -> ParseResult<u64>;
}
Expand description

Immutable random-access reader over one mapped Mach-O module.

Required Methods§

Source

fn read_exact(&self, range: Range<u64>) -> ParseResult<Vec<u8>>

Copy exactly range.len() bytes from module-relative virtual addresses.

Source

fn captured_len(&self) -> ParseResult<u64>

Total number of captured bytes available to reconstruction.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§