mirror of
https://github.com/QuasarApp/macdependency.git
synced 2025-04-29 13:54: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);
|
||
|
}
|