LIEF: Library to Instrument Executable Formats Version 0.17.0
Loading...
Searching...
No Matches
AuxiliarybfAndefSymbol.hpp
Go to the documentation of this file.
1/* Copyright 2017 - 2025 R. Thomas
2 * Copyright 2017 - 2025 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
36
39
42
43 std::unique_ptr<AuxiliarySymbol> clone() const override {
44 return std::unique_ptr<AuxiliarybfAndefSymbol>(new AuxiliarybfAndefSymbol{*this});
45 }
46
47 std::string to_string() const override {
48 return "AuxiliarybfAndefSymbol";
49 }
50
51 static bool classof(const AuxiliarySymbol* sym) {
53 }
54
55 ~AuxiliarybfAndefSymbol() override = default;
56};
57
58}
59}
60#endif
span< const uint8_t > payload() const
For unknown type only, return the raw representation of this symbol.
Definition AuxiliarySymbol.hpp:83
TYPE type() const
Definition AuxiliarySymbol.hpp:78
TYPE
Type discriminator for the subclasses.
Definition AuxiliarySymbol.hpp:57
@ BF_AND_EF
Auxiliary Format 2: .bf and .ef Symbols from the PE-COFF documentation.
Definition AuxiliarySymbol.hpp:63
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:47
static bool classof(const AuxiliarySymbol *sym)
Definition AuxiliarybfAndefSymbol.hpp:51
std::unique_ptr< AuxiliarySymbol > clone() const override
Definition AuxiliarybfAndefSymbol.hpp:43
~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:41
#define LIEF_LOCAL
Definition visibility.h:42