blob: a3652d3f20d70212a21bfd873f71eb8c266655be [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-2019 Steve Nygard.
@class CDMachOFileDataCursor;
@class CDLCSegment;
@interface CDSection : NSObject
- (id)initWithDataCursor:(CDMachOFileDataCursor *)cursor segment:(CDLCSegment *)segment;
@property (weak, readonly) CDLCSegment *segment;
@property (nonatomic, readonly) NSData *data;
@property (nonatomic, readonly) NSString *segmentName;
@property (nonatomic, readonly) NSString *sectionName;
@property (nonatomic, readonly) NSUInteger addr;
@property (nonatomic, readonly) NSUInteger size;
- (BOOL)containsAddress:(NSUInteger)address;
- (NSUInteger)fileOffsetForAddress:(NSUInteger)address;
@end