16#ifndef LIEF_MACHO_TWO_LEVEL_HINTS_H
17#define LIEF_MACHO_TWO_LEVEL_HINTS_H
35struct twolevel_hints_command;
55 std::unique_ptr<LoadCommand>
clone()
const override {
56 return std::unique_ptr<TwoLevelHints>(
new TwoLevelHints(*
this));
69 uint32_t
offset()
const {
return offset_; }
73 return original_nb_hints_;
80 std::ostream&
print(std::ostream& os)
const override;
90 uint32_t original_nb_hints_ = 0;
Class used to parse a single binary (i.e. non-FAT).
Definition BinaryParser.hpp:78
Class used to rebuild a Mach-O file.
Definition MachO/Builder.hpp:63
Definition LinkEdit.hpp:45
LoadCommand::TYPE command() const
Command type.
Definition LoadCommand.hpp:128
@ TWOLEVEL_HINTS
Definition LoadCommand.hpp:67
static bool classof(const LoadCommand *cmd)
Definition TwoLevelHints.hpp:82
std::ostream & print(std::ostream &os) const override
std::unique_ptr< LoadCommand > clone() const override
Definition TwoLevelHints.hpp:55
uint32_t original_nb_hints() const
Definition TwoLevelHints.hpp:72
friend class BinaryParser
Definition TwoLevelHints.hpp:40
it_const_hints_t hints() const
Definition TwoLevelHints.hpp:65
~TwoLevelHints() override=default
TwoLevelHints(const TwoLevelHints ©)=default
span< const uint8_t > content() const
Original payload of the command.
Definition TwoLevelHints.hpp:60
void offset(uint32_t offset)
Definition TwoLevelHints.hpp:70
friend class Builder
Definition TwoLevelHints.hpp:42
uint32_t offset() const
Original offset of the command. It should point in the __LINKEDIT segment.
Definition TwoLevelHints.hpp:69
ref_iterator< hints_list_t & > it_hints_t
Definition TwoLevelHints.hpp:46
friend class LinkEdit
Definition TwoLevelHints.hpp:41
std::vector< uint32_t > hints_list_t
Definition TwoLevelHints.hpp:45
it_hints_t hints()
Iterator over the hints (uint32_t integers).
Definition TwoLevelHints.hpp:64
void accept(Visitor &visitor) const override
const_ref_iterator< const hints_list_t & > it_const_hints_t
Definition TwoLevelHints.hpp:47
TwoLevelHints(const details::twolevel_hints_command &cmd)
TwoLevelHints & operator=(const TwoLevelHints ©)=default
span< uint8_t > content()
Definition TwoLevelHints.hpp:61
Definition Visitor.hpp:210
Iterator which returns reference on container's values.
Definition iterators.hpp:46
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
ref_iterator< CT, U, typename decay_t< CT >::const_iterator > const_ref_iterator
Iterator which return const ref on container's values.
Definition iterators.hpp:257
#define LIEF_API
Definition visibility.h:41