mirror of
https://github.com/QuasarApp/macdependency.git
synced 2025-04-27 12:54:31 +00:00
- Applied all recommended XCode (8) settings. - Removed boost and replaced that code by standard functions. - Implemented name mangling via abi::__cxa_demangle instead of running an external process to use c++filt. - Enabled C++11. Min deployment target is now OSX 10.7. - Some code clean up (e.g. formatting, std namespace).
22 lines
475 B
C++
22 lines
475 B
C++
#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);
|
|
}
|
|
|