LIEF: Library to Instrument Executable Formats Version 0.15.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
LIEF::MachO::DataCodeEntry Class Reference

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

#include <DataCodeEntry.hpp>

Inheritance diagram for LIEF::MachO::DataCodeEntry:
Inheritance graph
[legend]
Collaboration diagram for LIEF::MachO::DataCodeEntry:
Collaboration graph
[legend]

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 (uint32_t off, uint16_t length, TYPES type)
 
 DataCodeEntry (const details::data_in_code_entry &entry)
 
DataCodeEntryoperator= (const DataCodeEntry &)
 
 DataCodeEntry (const DataCodeEntry &)
 
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)
 
void accept (Visitor &visitor) const override
 
- Public Member Functions inherited from LIEF::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
 

Detailed Description

Interface over an entry in the DataInCode command.

Member Function Documentation

◆ accept()

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

Implements LIEF::Object.


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