Ghidra Decompiler Analysis Engine
string_ghidra.hh
Go to the documentation of this file.
1 /* ###
2  * IP: GHIDRA
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  */
18 
19 #ifndef __STRING_GHIDRA__
20 #define __STRING_GHIDRA__
21 
22 #include "ghidra_arch.hh"
23 
31  ArchitectureGhidra *glb;
32  uint1 *testBuffer;
33 public:
35  virtual ~GhidraStringManager(void);
36  virtual const vector<uint1> &getStringData(const Address &addr,Datatype *charType,bool &isTrunc);
37 };
38 
39 #endif
ghidra_arch.hh
Ghidra specific architecture information and connection to a Ghidra client.
GhidraStringManager::GhidraStringManager
GhidraStringManager(ArchitectureGhidra *g, int4 max)
Constructor.
Definition: string_ghidra.cc:18
Address
A low-level machine address for labelling bytes and data.
Definition: address.hh:46
Datatype
The base datatype class for the decompiler.
Definition: type.hh:62
GhidraStringManager
Implementation of the StringManager that queries through the ghidra client.
Definition: string_ghidra.hh:30
ArchitectureGhidra
An implementation of the Architecture interface and connection to a Ghidra client.
Definition: ghidra_arch.hh:60
GhidraStringManager::getStringData
virtual const vector< uint1 > & getStringData(const Address &addr, Datatype *charType, bool &isTrunc)
Retrieve string data at the given address as a UTF8 byte array.
Definition: string_ghidra.cc:31
StringManager
Storage for decoding and storing strings associated with an address.
Definition: stringmanage.hh:31