Go to the documentation of this file.
16#ifndef LIEF_MAP_ITEM_H
17#define LIEF_MAP_ITEM_H
35 enum class TYPES : uint16_t {
43 CALL_SITE_ID = 0x0007,
44 METHOD_HANDLE = 0x0008,
47 ANNOTATION_SET_REF_LIST = 0x1002,
48 ANNOTATION_SET = 0x1003,
54 ENCODED_ARRAY = 0x2005,
55 ANNOTATIONS_DIRECTORY = 0x2006,
61 MapItem(TYPES type, uint32_t offset, uint32_t size, uint16_t reserved = 0);
71 uint32_t
size()
const;
79 void accept(Visitor& visitor)
const override;
Class which represents a DEX Class (i.e. a Java/Kotlin class)
Definition DEX/Class.hpp:36
Class which represents an element of the MapList object.
Definition MapItem.hpp:31
MapItem & operator=(const MapItem &)
uint32_t offset() const
Offset from the start of the DEX file to the items associated with the underlying TYPES.
uint16_t reserved() const
Reserved value (likely for alignment prupose)
MapItem(TYPES type, uint32_t offset, uint32_t size, uint16_t reserved=0)
uint32_t size() const
The number of elements (the real meaning depends on the type)
TYPES type() const
The type of the item.
friend std::ostream & operator<<(std::ostream &os, const MapItem &item)
void accept(Visitor &visitor) const override
Class which parses a DEX file to produce a DEX::File object.
Definition DEX/Parser.hpp:38
Definition DEX/Class.hpp:30
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41