LIEF: Library to Instrument Executable Formats Version 0.15.0
Loading...
Searching...
No Matches
ResourceStringTable.hpp
1/* Copyright 2017 - 2024 R. Thomas
2 * Copyright 2017 - 2024 Quarkslab
3 * Copyright 2017 - 2021 K. Nakagawa
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17#ifndef LIEF_PE_RESOURCE_STRING_TABLE_H
18#define LIEF_PE_RESOURCE_STRING_TABLE_H
19#include <string>
20
21#include "LIEF/visibility.h"
22#include "LIEF/Object.hpp"
23
24namespace LIEF {
25namespace PE {
26class ResourcesManager;
27
28class LIEF_API ResourceStringTable : public Object {
29
30 friend class ResourcesManager;
31 public:
33
34 ResourceStringTable(int16_t length, std::u16string name);
36
38
39 ~ResourceStringTable() override;
40
41 void accept(Visitor& visitor) const override;
42
44 int16_t length() const;
45
47 const std::u16string& name() const;
48
49
50 LIEF_API friend std::ostream& operator<<(std::ostream& os, const ResourceStringTable& string_table);
51
52 private:
53 std::u16string name_;
54 int16_t length_;
55};
56
57}
58}
59
60#endif
Definition Object.hpp:25
Definition ResourceStringTable.hpp:28
int16_t length() const
The size of the string, not including length field itself.
const std::u16string & name() const
The variable-length Unicode string data, word-aligned.
The Resource Manager provides an enhanced API to manipulate the resource tree.
Definition ResourcesManager.hpp:38
Definition Visitor.hpp:219
LIEF namespace.
Definition Abstract/Binary.hpp:32