16#ifndef LIEF_MACHO_NOTE_COMMAND_H
17#define LIEF_MACHO_NOTE_COMMAND_H
43 std::unique_ptr<LoadCommand>
clone()
const override {
44 return std::unique_ptr<NoteCommand>(
new NoteCommand(*
this));
68 return std::string(owner_.data(), owner_.size()).c_str();
72 note_offset_ = offset;
81 std::ostream&
print(std::ostream& os)
const override;
90 std::array<char, 16> owner_;
91 uint64_t note_offset_ = 0;
92 uint64_t note_size_ = 0;
uint32_t size() const
Size of the command (should be greather than sizeof(load_command)).
Definition LoadCommand.hpp:133
LoadCommand::TYPE command() const
Command type.
Definition LoadCommand.hpp:128
@ NOTE
Definition LoadCommand.hpp:95
std::ostream & print(std::ostream &os) const override
span< char > owner()
Definition NoteCommand.hpp:62
uint64_t note_offset() const
Offset of the data associated with this note.
Definition NoteCommand.hpp:48
void accept(Visitor &visitor) const override
span< const char > owner() const
Owner of the note (e.g. AIR_METALLIB).
Definition NoteCommand.hpp:58
std::unique_ptr< LoadCommand > clone() const override
Definition NoteCommand.hpp:43
std::string owner_str() const
Owner as a zero-terminated string.
Definition NoteCommand.hpp:67
NoteCommand(const details::note_command &cmd)
void note_size(uint64_t size)
Definition NoteCommand.hpp:75
static bool classof(const LoadCommand *cmd)
Definition NoteCommand.hpp:85
uint64_t note_size() const
Size of the data referenced by the note_offset.
Definition NoteCommand.hpp:53
NoteCommand & operator=(const NoteCommand ©)=default
~NoteCommand() override=default
NoteCommand(const NoteCommand ©)=default
void note_offset(uint64_t offset)
Definition NoteCommand.hpp:71
Definition Visitor.hpp:210
Definition endianness_support.hpp:59
Namespace related to the LIEF's Mach-O module.
Definition Abstract/Header.hpp:36
LIEF namespace.
Definition Abstract/Binary.hpp:40
tcb::span< ElementType, Extent > span
Definition span.hpp:22
#define LIEF_API
Definition visibility.h:41