mirror of
https://github.com/QuasarApp/macdependency.git
synced 2025-04-28 13:24:32 +00:00
23 lines
426 B
C++
23 lines
426 B
C++
#include "uuidcommand.h"
|
|
#include "machofile.h"
|
|
#include "machoheader.h"
|
|
#include <sstream>
|
|
|
|
UuidCommand::UuidCommand(MachOHeader* header) :
|
|
LoadCommand(header)
|
|
{
|
|
file.readBytes((char*)&command, sizeof(command));
|
|
}
|
|
|
|
UuidCommand::~UuidCommand() {
|
|
}
|
|
|
|
unsigned int UuidCommand::getSize() const {
|
|
return file.getUint32(command.cmdsize);
|
|
}
|
|
|
|
const uint8_t* UuidCommand::getUuid() const {
|
|
return command.uuid;
|
|
}
|
|
|