forked from nygard/class-dump
/
CDFatFile.h
41 lines (30 loc) · 1000 Bytes
/
CDFatFile.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// 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-2005 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