LIEF: Library to Instrument Executable Formats
Version 2.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
lief-install
x86_64
static
include
LIEF
PE
LoadConfigurations
DynamicRelocation
DynamicRelocationV1.hpp
Go to the documentation of this file.
1
/* Copyright 2017 - 2026 R. Thomas
2
*
3
* Licensed under the Apache License, Version 2.0 (the "License");
4
* you may not use this file except in compliance with the License.
5
* You may obtain a copy of the License at
6
*
7
* http://www.apache.org/licenses/LICENSE-2.0
8
*
9
* Unless required by applicable law or agreed to in writing, software
10
* distributed under the License is distributed on an "AS IS" BASIS,
11
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
* See the License for the specific language governing permissions and
13
* limitations under the License.
14
*/
15
#ifndef LIEF_PE_LOAD_CONFIGURATION_DYNAMIC_RELOCATION_V1_H
16
#define LIEF_PE_LOAD_CONFIGURATION_DYNAMIC_RELOCATION_V1_H
17
18
#include <memory>
19
#include <string>
20
21
#include "
LIEF/PE/LoadConfigurations/DynamicRelocation/DynamicRelocationBase.hpp
"
22
#include "
LIEF/visibility.h
"
23
24
namespace
LIEF
{
25
class
BinaryStream
;
26
27
namespace
PE
{
28
class
Parser
;
29
32
class
LIEF_API
DynamicRelocationV1
:
public
DynamicRelocation
{
33
public
:
34
DynamicRelocationV1
() :
35
DynamicRelocation
(1) {}
36
37
DynamicRelocationV1
(
const
DynamicRelocationV1
&) =
default
;
38
DynamicRelocationV1
&
operator=
(
const
DynamicRelocationV1
&) =
default
;
39
40
DynamicRelocationV1
(
DynamicRelocationV1
&&) =
default
;
41
DynamicRelocationV1
&
operator=
(
DynamicRelocationV1
&&) =
default
;
42
43
std::unique_ptr<DynamicRelocation>
clone
()
const override
{
44
return
std::make_unique<DynamicRelocationV1>(*
this
);
45
}
46
47
std::string
to_string
()
const override
;
48
49
static
bool
classof
(
const
DynamicRelocation
* reloc) {
50
return
reloc->
version
() == 1;
51
}
52
53
~DynamicRelocationV1
()
override
=
default
;
54
56
template
<
class
PE_T>
57
LIEF_LOCAL
static
std::unique_ptr<DynamicRelocationV1> parse(
Parser
& ctx,
58
BinaryStream
& strm);
59
};
60
61
}
62
}
63
64
#endif
DynamicRelocationBase.hpp
LIEF::BinaryStream
Class that is used to a read stream of data from different sources.
Definition
BinaryStream.hpp:34
LIEF::PE::DynamicRelocationV1::DynamicRelocationV1
DynamicRelocationV1(const DynamicRelocationV1 &)=default
LIEF::PE::DynamicRelocationV1::operator=
DynamicRelocationV1 & operator=(const DynamicRelocationV1 &)=default
LIEF::PE::DynamicRelocationV1::DynamicRelocationV1
DynamicRelocationV1(DynamicRelocationV1 &&)=default
LIEF::PE::DynamicRelocationV1::DynamicRelocationV1
DynamicRelocationV1()
Definition
DynamicRelocationV1.hpp:34
LIEF::PE::DynamicRelocationV1::to_string
std::string to_string() const override
LIEF::PE::DynamicRelocationV1::clone
std::unique_ptr< DynamicRelocation > clone() const override
Definition
DynamicRelocationV1.hpp:43
LIEF::PE::DynamicRelocationV1::~DynamicRelocationV1
~DynamicRelocationV1() override=default
LIEF::PE::DynamicRelocationV1::operator=
DynamicRelocationV1 & operator=(DynamicRelocationV1 &&)=default
LIEF::PE::DynamicRelocationV1::classof
static bool classof(const DynamicRelocation *reloc)
Definition
DynamicRelocationV1.hpp:49
LIEF::PE::DynamicRelocation::version
uint32_t version() const
Version of the structure.
Definition
DynamicRelocationBase.hpp:75
LIEF::PE::DynamicRelocation::DynamicRelocation
DynamicRelocation()=delete
LIEF::PE::Parser
Main interface to parse PE binaries. In particular, the static Parser::parse functions should be used...
Definition
PE/Parser.hpp:53
LIEF::PE
Namespace related to the LIEF's PE module.
Definition
Abstract/Header.hpp:31
LIEF
LIEF namespace.
Definition
Abstract/Binary.hpp:41
visibility.h
LIEF_API
#define LIEF_API
Definition
visibility.h:44
LIEF_LOCAL
#define LIEF_LOCAL
Definition
visibility.h:45
Generated by
1.19.0