/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
/* First we attempt to parse if there's a Fat header there * *Ifwehaveone,thenwehaveauniversalbinarysowearegoingto *searchthearchitecturestofindtheonewewant,extractthecorrect *MachObufferaswellastheoffsetatwhichtheMachObinaryis. *TestingUniversalbinarieswillrequirerunninggtestagainsta *Shippablebuild. * *IfnotwehaveanormalMachOandwedirectlyparsethebufferwe *havereadearlier,andusea0offset.
*/ let (buf, main_offset): ([u8; HEADER_SIZE], usize) = if fat_header.magic == mach::fat::FAT_CIGAM || fat_header.magic == mach::fat::FAT_MAGIC
{ let total = std::mem::size_of::<mach::fat::FatHeader>() as usize
+ (std::mem::size_of::<mach::fat::FatArch>() * fat_header.nfat_arch as usize);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.