4
0
mirror of https://github.com/QuasarApp/macdependency.git synced 2025-04-29 05:44:31 +00:00
macdependency/MachO/dylinkercommand.cpp

22 lines
475 B
C++
Raw Normal View History

#include "dylinkercommand.h"
#include "machofile.h"
#include "machoheader.h"
#include <sstream>
DylinkerCommand::DylinkerCommand(MachOHeader* header) :
LoadCommand(header) {
file.readBytes((char*)&command, sizeof(command));
}
DylinkerCommand::~DylinkerCommand() {
}
unsigned int DylinkerCommand::getSize() const {
return file.getUint32(command.cmdsize);
}
std::string DylinkerCommand::getName() const {
return getLcDataString(command.name.offset);
}