forked from preemptive/PPiOS-Rename
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CDMachOFileDataCursor.h
38 lines (25 loc) · 1.05 KB
/
CDMachOFileDataCursor.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
// -*- mode: ObjC -*-
/********************************************
Copyright 2020 PreEmptive Solutions, LLC
See LICENSE.txt for licensing information
********************************************/
// 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-2015 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;
- (uint64_t)readPtr:(bool)small;
@end