LIEF: Library to Instrument Executable Formats
Version 1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
lief-install
x86_64
static
include
LIEF
DEX
CodeInfo.hpp
Go to the documentation of this file.
1
/* Copyright 2017 - 2026 R. Thomas
2
* Copyright 2017 - 2026 Quarkslab
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
#ifndef LIEF_DEX_CODE_INFO_H
17
#define LIEF_DEX_CODE_INFO_H
18
19
#include <cstdint>
20
#include <ostream>
21
22
#include "
LIEF/visibility.h
"
23
#include "
LIEF/Object.hpp
"
24
25
namespace
LIEF
{
26
namespace
DEX
{
27
namespace
details
{
28
struct
code_item;
29
}
30
31
class
Parser
;
32
33
class
LIEF_API
CodeInfo
:
public
Object
{
34
friend
class
Parser
;
35
36
public
:
37
CodeInfo
();
38
CodeInfo
(
const
details::code_item& codeitem);
39
40
CodeInfo
(
const
CodeInfo
&);
41
CodeInfo
&
operator=
(
const
CodeInfo
&);
42
43
void
accept
(
Visitor
& visitor)
const override
;
44
45
uint16_t
nb_registers
()
const
;
46
47
~CodeInfo
()
override
;
48
49
LIEF_API
friend
std::ostream&
operator<<
(std::ostream& os,
const
CodeInfo
& cinfo);
50
51
private
:
52
uint16_t nb_registers_ = 0;
53
uint16_t args_input_sizes_ = 0;
54
uint16_t output_sizes_ = 0;
55
56
};
57
58
}
// Namespace DEX
59
}
// Namespace LIEF
60
#endif
Object.hpp
LIEF::DEX::CodeInfo::~CodeInfo
~CodeInfo() override
LIEF::DEX::CodeInfo::CodeInfo
CodeInfo(const CodeInfo &)
LIEF::DEX::CodeInfo::accept
void accept(Visitor &visitor) const override
LIEF::DEX::CodeInfo::nb_registers
uint16_t nb_registers() const
LIEF::DEX::CodeInfo::CodeInfo
CodeInfo()
LIEF::DEX::CodeInfo::Parser
friend class Parser
Definition
CodeInfo.hpp:34
LIEF::DEX::CodeInfo::operator=
CodeInfo & operator=(const CodeInfo &)
LIEF::DEX::CodeInfo::operator<<
friend std::ostream & operator<<(std::ostream &os, const CodeInfo &cinfo)
LIEF::DEX::CodeInfo::CodeInfo
CodeInfo(const details::code_item &codeitem)
LIEF::DEX::Parser
Class which parses a DEX file to produce a DEX::File object.
Definition
DEX/Parser.hpp:38
LIEF::Object::Object
Object()
LIEF::Visitor
Definition
Visitor.hpp:210
LIEF::DEX::details
Definition
CodeInfo.hpp:27
LIEF::DEX
Definition
DEX/Class.hpp:30
LIEF
LIEF namespace.
Definition
Abstract/Binary.hpp:40
visibility.h
LIEF_API
#define LIEF_API
Definition
visibility.h:41
Generated by
1.17.0