Skip to main content

Crate macho_core

Crate macho_core 

Source
Expand description

Byte-safe Mach-O structural parsing, validation, and diagnostics.

Re-exports§

pub use crate::format::ParseLimits;
pub use crate::format::ParseMode;
pub use crate::format::ParseOptions;
pub use crate::format::ParseOutcome;
pub use crate::format::parse;
pub use crate::format::parse_with_options;
pub use format::load_commands::parse_load_commands;
pub use model::load_command::LoadCommand;
pub use model::load_command::format_uuid;
pub use model::macho_file::MachoFile;
pub use model::section::Section;
pub use model::symbol::Symbol;
pub use model::symbol::SymbolTable;
pub use model::SelectedImage;
pub use model::SelectionKey;

Modules§

ext
The ext module.
format
The format module.
model
The model module.

Structs§

FileRvaMapping
Mapping from reconstructed file bytes to the mapped RVA bytes that supplied them.
MaterializationLimits
Resource limits for mapped-image reconstruction.
MaterializedImage
A reconstructed Mach-O file and its source-coordinate map.
OffsetSpan
Byte range associated with a parser failure.
ParseError
Structured failure returned by core parsing and structural accessors.

Enums§

ContextFrame
Ordered structural context retained while errors cross parser boundaries.
ParseErrorKind
Stable category for a structural parse failure.

Traits§

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

Functions§

materialize_mapped_image
Reconstruct one parseable thin file from an immutable mapped-module snapshot.
probe
Return whether the leading bytes identify a thin or universal Mach-O.

Type Aliases§

ParseResult
Result returned by core parsing and structural accessors.