blob: d1d22676e490f0c918e801f3174c3d25011cbfb1 [file] [log] [blame]
// -*- mode: ObjC -*-
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2009 Steve Nygard.
#import <Foundation/Foundation.h>
#include <mach-o/fat.h>
#import "CDFile.h" // For CDArch
@class CDDataCursor;
@class CDFatFile, CDMachOFile;
@interface CDFatArch : NSObject
{
CDFatFile *nonretainedFatFile;
struct fat_arch fatArch;
BOOL uses64BitABI;
CDMachOFile *machOFile; // Lazily create this.
}
- (id)initWithDataCursor:(CDDataCursor *)cursor;
- (void)dealloc;
- (cpu_type_t)cpuType;
- (cpu_type_t)maskedCPUType;
- (cpu_subtype_t)cpuSubtype;
- (uint32_t)offset;
- (uint32_t)size;
- (uint32_t)align;
- (BOOL)uses64BitABI;
- (CDFatFile *)fatFile;
- (void)setFatFile:(CDFatFile *)newFatFile;
- (NSString *)description;
- (CDArch)arch;
- (NSString *)archName;
- (CDMachOFile *)machOFile;
- (NSData *)machOData;
@end