16#ifndef LIEF_MAP_ITEM_H
17#define LIEF_MAP_ITEM_H
22#include "LIEF/visibility.h"
23#include "LIEF/Object.hpp"
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);
79 void accept(
Visitor& visitor)
const override;
82 LIEF_API
friend std::ostream& operator<<(std::ostream& os,
const MapItem& item);
Class which represents an element of the MapList object.
Definition MapItem.hpp:31
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)
uint32_t size() const
The number of elements (the real meaning depends on the type)
TYPES type() const
The type of the item.
Class which parses a DEX file to produce a DEX::File object.
Definition DEX/Parser.hpp:38
Definition Visitor.hpp:219
LIEF namespace.
Definition Abstract/Binary.hpp:32