mirror of
https://github.com/QuasarApp/macdependency.git
synced 2025-04-28 05:14:32 +00:00
21 lines
434 B
C++
21 lines
434 B
C++
#include "rpathcommand.h"
|
|
#include "machofile.h"
|
|
#include "machoheader.h"
|
|
|
|
RpathCommand::RpathCommand(MachOHeader* header) :
|
|
LoadCommand(header)
|
|
{
|
|
file.readBytes((char*)&command, sizeof(command));
|
|
}
|
|
|
|
RpathCommand::~RpathCommand() {
|
|
}
|
|
|
|
unsigned int RpathCommand::getSize() const {
|
|
return file.getUint32(command.cmdsize);
|
|
}
|
|
|
|
const char* RpathCommand::getPath() const {
|
|
return getLcDataString(command.path.offset);
|
|
}
|