LIEF: Library to Instrument Executable Formats Version 0.17.0
|
Class which represents an element of the MapList object. More...
#include <MapItem.hpp>
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 &) | |
MapItem & | operator= (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) | |
Object & | operator= (const Object &other) |
Object (Object &&other) noexcept=default | |
Object & | operator= (Object &&other) noexcept=default |
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 () |
|
strong |
LIEF::DEX::MapItem::MapItem | ( | ) |
Referenced by MapItem(), operator<<, and operator=().
LIEF::DEX::MapItem::MapItem | ( | TYPES | type, |
uint32_t | offset, | ||
uint32_t | size, | ||
uint16_t | reserved = 0 ) |
References offset(), reserved(), size(), and type().
|
override |
|
overridevirtual |
Implements LIEF::Object.
uint32_t LIEF::DEX::MapItem::offset | ( | ) | const |
uint16_t LIEF::DEX::MapItem::reserved | ( | ) | const |
Reserved value (likely for alignment prupose).
Referenced by MapItem().
uint32_t LIEF::DEX::MapItem::size | ( | ) | const |
The number of elements (the real meaning depends on the type).
Referenced by MapItem().