16#ifndef LIEF_MACHO_SEGMENT_SPLIT_INFO_H
17#define LIEF_MACHO_SEGMENT_SPLIT_INFO_H
31struct linkedit_data_command;
45 std::unique_ptr<LoadCommand>
clone()
const override {
57 data_offset_ = offset;
75 std::ostream&
print(std::ostream& os)
const override;
78 return cmd->
command() == LoadCommand::TYPE::SEGMENT_SPLIT_INFO;
82 uint32_t data_offset_ = 0;
83 uint32_t data_size_ = 0;
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:36
LoadCommand::TYPE command() const
Command type.
Definition LoadCommand.hpp:122
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 Visitor.hpp:224
LIEF namespace.
Definition Abstract/Binary.hpp:32
tcb::span< ElementType, Extent > span
Definition span.hpp:22
#define LIEF_API
Definition visibility.h:41