LIEF: Library to Instrument Executable Formats Version 1.0.0
Loading...
Searching...
No Matches
AuxiliarybfAndefSymbol.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_COFF_AUXILIARY_BF_AND_EF_H
17#define LIEF_COFF_AUXILIARY_BF_AND_EF_H
18
19#include <memory>
20
21#include "LIEF/visibility.h"
23
24namespace LIEF {
25
26namespace COFF {
27
29 public:
30 LIEF_LOCAL static std::unique_ptr<AuxiliarybfAndefSymbol>
31 parse(Symbol& sym, const std::vector<uint8_t>& payload);
32
35
38
41
42 std::unique_ptr<AuxiliarySymbol> clone() const override {
43 return std::unique_ptr<AuxiliarybfAndefSymbol>(
44 new AuxiliarybfAndefSymbol{*this}
45 );
46 }
47
48 std::string to_string() const override {
49 return "AuxiliarybfAndefSymbol";
50 }
51
52 static bool classof(const AuxiliarySymbol* sym) {
54 }
55
56 ~AuxiliarybfAndefSymbol() override = default;
57};
58
59}
60}
61#endif
span< const uint8_t > payload() const
For unknown type only, return the raw representation of this symbol.
Definition AuxiliarySymbol.hpp:81
TYPE type() const
Definition AuxiliarySymbol.hpp:76
TYPE
Type discriminator for the subclasses.
Definition AuxiliarySymbol.hpp:56
@ BF_AND_EF
Auxiliary Format 2: .bf and .ef Symbols from the PE-COFF documentation.
Definition AuxiliarySymbol.hpp:62
AuxiliarybfAndefSymbol(AuxiliarybfAndefSymbol &&)=default
static std::unique_ptr< AuxiliarybfAndefSymbol > parse(Symbol &sym, const std::vector< uint8_t > &payload)
AuxiliarybfAndefSymbol()
Definition AuxiliarybfAndefSymbol.hpp:33
AuxiliarybfAndefSymbol(const AuxiliarybfAndefSymbol &)=default
std::string to_string() const override
Definition AuxiliarybfAndefSymbol.hpp:48
static bool classof(const AuxiliarySymbol *sym)
Definition AuxiliarybfAndefSymbol.hpp:52
std::unique_ptr< AuxiliarySymbol > clone() const override
Definition AuxiliarybfAndefSymbol.hpp:42
~AuxiliarybfAndefSymbol() override=default
AuxiliarybfAndefSymbol & operator=(const AuxiliarybfAndefSymbol &)=default
AuxiliarybfAndefSymbol & operator=(AuxiliarybfAndefSymbol &&)=default
This class represents a COFF symbol.
Definition COFF/Symbol.hpp:35
Definition AuxiliarySymbol.hpp:29
LIEF namespace.
Definition Abstract/Binary.hpp:40
#define LIEF_API
Definition visibility.h:43
#define LIEF_LOCAL
Definition visibility.h:44