Class VarnodeTemplate
java.lang.Object
ghidra.app.plugin.processors.generic.VarnodeTemplate
- All Implemented Interfaces:
Serializable
To change this generated comment edit the template variable "typecomment":
Window>Preferences>Java>Templates.
To enable and disable the creation of type comments go to
Window>Preferences>Java>Code Generation.
- See Also:
-
Constructor Summary
ConstructorDescriptionVarnodeTemplate
(ConstantTemplate space, ConstantTemplate offset, ConstantTemplate size, AddressFactory addressFactory, boolean ou) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
boolean
loadomit()
offset()
boolean
oneuse()
Resolves a varnode at the given position and buffer offsetMethod resolve.void
setDef
(OpTemplate opTemplate) Method setDef.void
setReplace
(Operand op, boolean load) size()
space()
-
Constructor Details
-
VarnodeTemplate
public VarnodeTemplate(ConstantTemplate space, ConstantTemplate offset, ConstantTemplate size, AddressFactory addressFactory, boolean ou)
-
-
Method Details
-
setDef
Method setDef.- Parameters:
opTemplate
-
-
resolve
public Varnode resolve(HashMap<Object, Handle> handles, Position position, int bufoff) throws ExceptionMethod resolve.- Parameters:
handles
-- Returns:
- Varnode
- Throws:
Exception
-
resolve
Resolves a varnode at the given position and buffer offset- Parameters:
position
- the positionbufoff
- the buffer offset- Returns:
- the resolved
raw varnode
. (Only contains an address and size) - Throws:
Exception
- if an error occurs resolving the varnode
-
oneuse
public boolean oneuse() -
space
-
offset
-
size
-
setReplace
-
loadomit
public boolean loadomit() -
hashCode
public int hashCode() -
equals
-