LIEF: Library to Instrument Executable Formats Version 2.0.0
Loading...
Searching...
No Matches
AuxiliarybfAndefSymbol.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_COFF_AUXILIARY_BF_AND_EF_H
16#define LIEF_COFF_AUXILIARY_BF_AND_EF_H
17
18#include <memory>
19
21#include "LIEF/visibility.h"
22
23
24namespace LIEF::COFF {
25
27 public:
28 LIEF_LOCAL static std::unique_ptr<AuxiliarybfAndefSymbol>
29 parse(Symbol& sym, const std::vector<uint8_t>& payload);
30
33
36
39
40 std::unique_ptr<AuxiliarySymbol> clone() const override {
41 return std::make_unique<AuxiliarybfAndefSymbol>(*this);
42 }
43
44 std::string to_string() const override {
45 return "AuxiliarybfAndefSymbol";
46 }
47
48 static bool classof(const AuxiliarySymbol* sym) {
50 }
51
52 ~AuxiliarybfAndefSymbol() override = default;
53};
54
55}
56
57#endif
span< const uint8_t > payload() const
For unknown type only, return the raw representation of this symbol.
Definition AuxiliarySymbol.hpp:84
TYPE type() const
Definition AuxiliarySymbol.hpp:79
TYPE
Type discriminator for the subclasses.
Definition AuxiliarySymbol.hpp:55
@ 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:31
AuxiliarybfAndefSymbol(const AuxiliarybfAndefSymbol &)=default
std::string to_string() const override
Definition AuxiliarybfAndefSymbol.hpp:44
static bool classof(const AuxiliarySymbol *sym)
Definition AuxiliarybfAndefSymbol.hpp:48
std::unique_ptr< AuxiliarySymbol > clone() const override
Definition AuxiliarybfAndefSymbol.hpp:40
~AuxiliarybfAndefSymbol() override=default
AuxiliarybfAndefSymbol & operator=(const AuxiliarybfAndefSymbol &)=default
AuxiliarybfAndefSymbol & operator=(AuxiliarybfAndefSymbol &&)=default
This class represents a COFF symbol.
Definition COFF/Symbol.hpp:36
Definition AuxiliarySymbol.hpp:29
#define LIEF_API
Definition visibility.h:44
#define LIEF_LOCAL
Definition visibility.h:45