LIEF: Library to Instrument Executable Formats Version 0.16.0
Loading...
Searching...
No Matches
CodeInfo.hpp
Go to the documentation of this file.
1/* Copyright 2017 - 2024 R. Thomas
2 * Copyright 2017 - 2024 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
25namespace LIEF {
26namespace DEX {
27namespace details {
28struct code_item;
29}
30
31class Parser;
32
33class LIEF_API CodeInfo : public Object {
34 friend class Parser;
35
36 public:
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
46 ~CodeInfo() override;
47
48 LIEF_API friend std::ostream& operator<<(std::ostream& os, const CodeInfo& cinfo);
49
50 private:
51 uint16_t nb_registers_ = 0;
52 uint16_t args_input_sizes_ = 0;
53 uint16_t output_sizes_ = 0;
54
55};
56
57} // Namespace DEX
58} // Namespace LIEF
59#endif
Definition CodeInfo.hpp:33
~CodeInfo() override
CodeInfo(const CodeInfo &)
void accept(Visitor &visitor) const override
CodeInfo & operator=(const CodeInfo &)
friend std::ostream & operator<<(std::ostream &os, const CodeInfo &cinfo)
CodeInfo(const details::code_item &codeitem)
Class which parses a DEX file to produce a DEX::File object.
Definition DEX/Parser.hpp:38
Definition CodeInfo.hpp:27
Definition DEX/Class.hpp:30
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41