blob: 2f0af7c6b0e1e67be2ab2c1c6aaa768c7be50579 [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.
// Importing these here saves us from importing them in the implementation of every load command.
#include <mach-o/loader.h>
#import "CDMachOFileDataCursor.h"
@class CDMachOFile;
@interface CDLoadCommand : NSObject
+ (id)loadCommandWithDataCursor:(CDMachOFileDataCursor *)cursor;
- (id)initWithDataCursor:(CDMachOFileDataCursor *)cursor;
- (NSString *)extraDescription;
@property (weak, readonly) CDMachOFile *machOFile;
@property (readonly) NSUInteger commandOffset;
@property (nonatomic, readonly) uint32_t cmd;
@property (nonatomic, readonly) uint32_t cmdsize;
@property (nonatomic, readonly) BOOL mustUnderstandToExecute;
@property (nonatomic, readonly) NSString *commandName;
- (void)appendToString:(NSMutableString *)resultString verbose:(BOOL)isVerbose;
- (void)machOFileDidReadLoadCommands:(CDMachOFile *)machOFile;
@end