mirror of
https://github.com/VibeDarling/class-dump.git
synced 2026-11-15 18:38:44 -10:00
33 lines
851 B
Objective-C
33 lines
851 B
Objective-C
// -*- 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-2013 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 (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
|