-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathCDMachOFileDataCursor.h
More file actions
32 lines (20 loc) · 840 Bytes
/
CDMachOFileDataCursor.h
File metadata and controls
32 lines (20 loc) · 840 Bytes
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
// -*- mode: ObjC -*-
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-2019 Steve Nygard.
#import "CDDataCursor.h"
@class CDMachOFile, CDSection;
@interface CDMachOFileDataCursor : CDDataCursor
- (id)initWithFile:(CDMachOFile *)machOFile;
- (id)initWithFile:(CDMachOFile *)machOFile offset:(NSUInteger)offset;
- (id)initWithFile:(CDMachOFile *)machOFile address:(NSUInteger)address;
- (id)initWithSection:(CDSection *)section;
@property (nonatomic, weak, readonly) CDMachOFile *machOFile;
- (void)setAddress:(NSUInteger)address;
// Read using the current byteOrder
- (uint16_t)readInt16;
- (uint32_t)readInt32;
- (uint64_t)readInt64;
- (uint32_t)peekInt32;
// Read using the current byteOrder and ptrSize (from the machOFile)
- (uint64_t)readPtr;
@end