blob: 53acbad82f30cfc819ea5e8dcf9052130065f4d2 [file] [log] [blame]
// 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-2006 Steve Nygard
#import <Foundation/NSObject.h>
#include <mach-o/fat.h>
#ifdef __BIG_ENDIAN__
#define CD_FAT_MAGIC FAT_MAGIC
#define CD_THIS_BYTE_ORDER NX_BigEndian
#else
#define CD_FAT_MAGIC FAT_CIGAM
#define CD_THIS_BYTE_ORDER NX_LittleEndian
#endif
@class NSArray, NSData, NSMutableArray;
@class CDFatArch, CDMachOFile;
@interface CDFatFile : NSObject
{
NSString *filename;
NSData *data;
struct fat_header header;
NSMutableArray *arches;
}
- (id)initWithFilename:(NSString *)aFilename;
- (void)dealloc;
- (void)_processFatArchesWithPointer:(const void *)ptr swapBytes:(BOOL)shouldSwapBytes;
- (NSString *)filename;
- (unsigned int)fatCount;
- (CDFatArch *)fatArchWithCPUType:(cpu_type_t)aCPUType;
- (CDFatArch *)_fatArchWithCPUType:(cpu_type_t)aCPUType;
- (CDFatArch *)localArchitecture;
- (NSString *)description;
@end