Class Offset
- java.lang.Object
-
- ghidra.app.plugin.processors.generic.Offset
-
- All Implemented Interfaces:
java.io.Serializable
public class Offset extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOffset(MemBuffer buf, int off)
Method getOffset.void
setRelativeOffset(java.util.Hashtable<java.lang.String,Operand> opHash)
Method setRelativeOffset.
-
-
-
Constructor Detail
-
Offset
public Offset(int off, java.lang.String name) throws SledException
- Throws:
SledException
-
Offset
public Offset(int off, Operand rel)
-
-
Method Detail
-
setRelativeOffset
public void setRelativeOffset(java.util.Hashtable<java.lang.String,Operand> opHash) throws SledException
Method setRelativeOffset.- Parameters:
opHash
-- Throws:
SledException
-
getOffset
public int getOffset(MemBuffer buf, int off) throws java.lang.Exception
Method getOffset.- Parameters:
buf
- - a MemBuffer of bytes to parseoff
- - offset into the MemBuffer at which to start- Returns:
- int - offset into the MemBuffer to which this Offset object points given the bytes in the MemBuffer.
- Throws:
java.lang.Exception
-
-