Skip to main content

parse_objc_metadata_from_source

Function parse_objc_metadata_from_source 

Source
pub fn parse_objc_metadata_from_source<S>(source: &S) -> Result<ObjCMetadata>
where S: AsRef<[u8]> + ?Sized,
Expand description

Parse Objective-C metadata from one borrowed thin Mach-O byte source.

The source is not copied and may be a byte slice, vector, or caller-owned read-only memory map. Universal binaries are rejected because selecting an architecture is a caller decision; parse those with macho_core::parse and pass the selected image to parse_objc_metadata.