16#ifndef LIEF_MACHO_UUID_COMMAND_H
17#define LIEF_MACHO_UUID_COMMAND_H
21#include "LIEF/visibility.h"
23#include "LIEF/MachO/LoadCommand.hpp"
32using uuid_t = std::array<uint8_t, 16>;
43 std::unique_ptr<LoadCommand> clone()
const override {
44 return std::unique_ptr<UUIDCommand>(
new UUIDCommand(*
this));
50 const uuid_t&
uuid()
const {
53 void uuid(
const uuid_t& uuid) {
57 void accept(
Visitor& visitor)
const override;
59 std::ostream& print(std::ostream& os)
const override;
61 static bool classof(
const LoadCommand* cmd) {
62 return cmd->command() == LoadCommand::TYPE::UUID;
Based class for the Mach-O load commands.
Definition LoadCommand.hpp:36
Class that represents the UUID command.
Definition UUIDCommand.hpp:35
const uuid_t & uuid() const
The UUID as a 16-bytes array.
Definition UUIDCommand.hpp:50
Definition Visitor.hpp:219
LIEF namespace.
Definition Abstract/Binary.hpp:32