blob: 470e2742972567dd881ff1eb28da2ae379e890c9 [file] [log] [blame]
// -*- 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-2012 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