LIEF: Library to Instrument Executable Formats Version 0.17.0
Loading...
Searching...
No Matches
LIEF::DEX::MapItem Class Reference

Class which represents an element of the MapList object. More...

#include <MapItem.hpp>

Inheritance diagram for LIEF::DEX::MapItem:
Collaboration diagram for LIEF::DEX::MapItem:

Public Types

enum class  TYPES : uint16_t {
  HEADER = 0x0000 , STRING_ID = 0x0001 , TYPE_ID = 0x0002 , PROTO_ID = 0x0003 ,
  FIELD_ID = 0x0004 , METHOD_ID = 0x0005 , CLASS_DEF = 0x0006 , CALL_SITE_ID = 0x0007 ,
  METHOD_HANDLE = 0x0008 , MAP_LIST = 0x1000 , TYPE_LIST = 0x1001 , ANNOTATION_SET_REF_LIST = 0x1002 ,
  ANNOTATION_SET = 0x1003 , CLASS_DATA = 0x2000 , CODE = 0x2001 , STRING_DATA = 0x2002 ,
  DEBUG_INFO = 0x2003 , ANNOTATION = 0x2004 , ENCODED_ARRAY = 0x2005 , ANNOTATIONS_DIRECTORY = 0x2006
}
 
- 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

 MapItem ()
 
 MapItem (TYPES type, uint32_t offset, uint32_t size, uint16_t reserved=0)
 
 MapItem (const MapItem &)
 
MapItemoperator= (const MapItem &)
 
TYPES type () const
 The type of the item.
 
uint16_t reserved () const
 Reserved value (likely for alignment prupose)
 
uint32_t size () const
 The number of elements (the real meaning depends on the type)
 
uint32_t offset () const
 Offset from the start of the DEX file to the items associated with the underlying TYPES.
 
void accept (Visitor &visitor) const override
 
 ~MapItem () 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

Class which represents an element of the MapList object.

Member Enumeration Documentation

◆ TYPES

enum class LIEF::DEX::MapItem::TYPES : uint16_t
strong
Enumerator
HEADER 
STRING_ID 
TYPE_ID 
PROTO_ID 
FIELD_ID 
METHOD_ID 
CLASS_DEF 
CALL_SITE_ID 
METHOD_HANDLE 
MAP_LIST 
TYPE_LIST 
ANNOTATION_SET_REF_LIST 
ANNOTATION_SET 
CLASS_DATA 
CODE 
STRING_DATA 
DEBUG_INFO 
ANNOTATION 
ENCODED_ARRAY 
ANNOTATIONS_DIRECTORY 

Constructor & Destructor Documentation

◆ MapItem() [1/3]

LIEF::DEX::MapItem::MapItem ( )

◆ MapItem() [2/3]

LIEF::DEX::MapItem::MapItem ( TYPES type,
uint32_t offset,
uint32_t size,
uint16_t reserved = 0 )

◆ MapItem() [3/3]

LIEF::DEX::MapItem::MapItem ( const MapItem & )

◆ ~MapItem()

LIEF::DEX::MapItem::~MapItem ( )
override

Member Function Documentation

◆ accept()

void LIEF::DEX::MapItem::accept ( Visitor & visitor) const
overridevirtual

Implements LIEF::Object.

◆ offset()

uint32_t LIEF::DEX::MapItem::offset ( ) const

Offset from the start of the DEX file to the items associated with the underlying TYPES.

◆ operator=()

MapItem & LIEF::DEX::MapItem::operator= ( const MapItem & )

◆ reserved()

uint16_t LIEF::DEX::MapItem::reserved ( ) const

Reserved value (likely for alignment prupose)

◆ size()

uint32_t LIEF::DEX::MapItem::size ( ) const

The number of elements (the real meaning depends on the type)

◆ type()

TYPES LIEF::DEX::MapItem::type ( ) const

The type of the item.


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