blob: 62a1e9bbd59b443c0a23dec10e896fa420b68dcc [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.
#import "CDLCTwoLevelHints.h"
#import "CDMachOFile.h"
@implementation CDLCTwoLevelHints
{
struct twolevel_hints_command _hintsCommand;
}
- (id)initWithDataCursor:(CDMachOFileDataCursor *)cursor;
{
if ((self = [super initWithDataCursor:cursor])) {
_hintsCommand.cmd = [cursor readInt32];
_hintsCommand.cmdsize = [cursor readInt32];
_hintsCommand.offset = [cursor readInt32];
_hintsCommand.nhints = [cursor readInt32];
}
return self;
}
#pragma mark -
- (uint32_t)cmd;
{
return _hintsCommand.cmd;
}
- (uint32_t)cmdsize;
{
return _hintsCommand.cmdsize;
}
@end