LIEF: Library to Instrument Executable Formats Version 0.15.1
Loading...
Searching...
No Matches
LIEF::MachO::DataCodeEntry Class Reference

Interface over an entry in the DataInCode command. More...

#include <DataCodeEntry.hpp>

Inheritance diagram for LIEF::MachO::DataCodeEntry:
Collaboration diagram for LIEF::MachO::DataCodeEntry:

Public Types

enum class  TYPES {
  UNKNOWN = 0 , DATA = 1 , JUMP_TABLE_8 = 2 , JUMP_TABLE_16 = 3 ,
  JUMP_TABLE_32 = 4 , ABS_JUMP_TABLE_32 = 5
}
 
- Public Types inherited from LIEF::Object
template<class T >
using output_t = add_pointer_t<decay_t<T>>
 
template<class T >
using output_const_t = add_pointer_t<add_const_t<decay_t<T>>>
 

Public Member Functions

 DataCodeEntry ()=default
 
 DataCodeEntry (uint32_t off, uint16_t length, TYPES type)
 
 DataCodeEntry (const details::data_in_code_entry &entry)
 
DataCodeEntryoperator= (const DataCodeEntry &)=default
 
 DataCodeEntry (const DataCodeEntry &)=default
 
uint32_t offset () const
 Offset of the data.
 
uint16_t length () const
 Length of the data.
 
TYPES type () const
 
void offset (uint32_t off)
 
void length (uint16_t length)
 
void type (TYPES type)
 
 ~DataCodeEntry () override=default
 
void accept (Visitor &visitor) const override
 
- Public Member Functions inherited from LIEF::Object
 Object ()
 
 Object (const Object &other)
 
Objectoperator= (const Object &other)
 
template<class T >
output_t< T > as ()
 
template<class T >
output_const_t< T > as () const
 
virtual bool operator== (const Object &other) const
 
virtual bool operator!= (const Object &other) const
 
virtual ~Object ()
 

Detailed Description

Interface over an entry in the DataInCode command.

Member Enumeration Documentation

◆ TYPES

Enumerator
UNKNOWN 
DATA 
JUMP_TABLE_8 
JUMP_TABLE_16 
JUMP_TABLE_32 
ABS_JUMP_TABLE_32 

Constructor & Destructor Documentation

◆ DataCodeEntry() [1/4]

LIEF::MachO::DataCodeEntry::DataCodeEntry ( )
default

◆ DataCodeEntry() [2/4]

LIEF::MachO::DataCodeEntry::DataCodeEntry ( uint32_t off,
uint16_t length,
TYPES type )
inline

◆ DataCodeEntry() [3/4]

LIEF::MachO::DataCodeEntry::DataCodeEntry ( const details::data_in_code_entry & entry)

◆ DataCodeEntry() [4/4]

LIEF::MachO::DataCodeEntry::DataCodeEntry ( const DataCodeEntry & )
default

◆ ~DataCodeEntry()

LIEF::MachO::DataCodeEntry::~DataCodeEntry ( )
overridedefault

Member Function Documentation

◆ accept()

void LIEF::MachO::DataCodeEntry::accept ( Visitor & visitor) const
overridevirtual

Implements LIEF::Object.

◆ length() [1/2]

uint16_t LIEF::MachO::DataCodeEntry::length ( ) const
inline

Length of the data.

◆ length() [2/2]

void LIEF::MachO::DataCodeEntry::length ( uint16_t length)
inline

◆ offset() [1/2]

uint32_t LIEF::MachO::DataCodeEntry::offset ( ) const
inline

Offset of the data.

◆ offset() [2/2]

void LIEF::MachO::DataCodeEntry::offset ( uint32_t off)
inline

◆ operator=()

DataCodeEntry & LIEF::MachO::DataCodeEntry::operator= ( const DataCodeEntry & )
default

◆ type() [1/2]

TYPES LIEF::MachO::DataCodeEntry::type ( ) const
inline

◆ type() [2/2]

void LIEF::MachO::DataCodeEntry::type ( TYPES type)
inline

The documentation for this class was generated from the following file: