Go to the documentation of this file.
16#ifndef LIEF_MACHO_SEGMENT_SPLIT_INFO_H
17#define LIEF_MACHO_SEGMENT_SPLIT_INFO_H
31struct linkedit_data_command;
36 friend class BinaryParser;
37 friend class LinkEdit;
42 SegmentSplitInfo&
operator=(
const SegmentSplitInfo& copy) =
default;
45 std::unique_ptr<LoadCommand>
clone()
const override {
46 return std::unique_ptr<SegmentSplitInfo>(
new SegmentSplitInfo(*
this));
57 data_offset_ = offset;
73 void accept(Visitor& visitor)
const override;
75 std::ostream&
print(std::ostream& os)
const override;
77 static bool classof(
const LoadCommand* cmd) {
78 return cmd->
command() == LoadCommand::TYPE::SEGMENT_SPLIT_INFO;
82 uint32_t data_offset_ = 0;
83 uint32_t data_size_ = 0;
84 span<uint8_t> content_;
Class used to parse a single binary (i.e. non-FAT)
Definition BinaryParser.hpp:74
Definition LinkEdit.hpp:42
Based class for the Mach-O load commands.
Definition LoadCommand.hpp:37
LoadCommand::TYPE command() const
Command type.
Definition LoadCommand.hpp:124
Class that represents the LoadCommand::TYPE::SEGMENT_SPLIT_INFO command.
Definition SegmentSplitInfo.hpp:35
std::ostream & print(std::ostream &os) const override
SegmentSplitInfo()=default
uint32_t data_offset() const
Definition SegmentSplitInfo.hpp:49
SegmentSplitInfo & operator=(const SegmentSplitInfo ©)=default
SegmentSplitInfo(const SegmentSplitInfo ©)=default
uint32_t data_size() const
Definition SegmentSplitInfo.hpp:52
void data_size(uint32_t size)
Definition SegmentSplitInfo.hpp:59
span< uint8_t > content()
Definition SegmentSplitInfo.hpp:63
void data_offset(uint32_t offset)
Definition SegmentSplitInfo.hpp:56
static bool classof(const LoadCommand *cmd)
Definition SegmentSplitInfo.hpp:77
span< const uint8_t > content() const
Definition SegmentSplitInfo.hpp:67
void accept(Visitor &visitor) const override
std::unique_ptr< LoadCommand > clone() const override
Definition SegmentSplitInfo.hpp:45
~SegmentSplitInfo() override=default
SegmentSplitInfo(const details::linkedit_data_command &cmd)
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:36
#define LIEF_API
Definition visibility.h:41