Package ghidra.app.plugin.processors.generic

# Class Offset

java.lang.Object
ghidra.app.plugin.processors.generic.Offset

All Implemented Interfaces:
  `Serializable`

public class Offset extends Object implements Serializable

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Offset(int off, Operand rel)`
  `Offset(int off, String name)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getOffset(MemBuffer buf, int off)`
  Method getOffset.
  `void`
  `setRelativeOffset(Hashtable<String,Operand> opHash)`
  Method setRelativeOffset.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Offset

    public Offset(int off, String name) throws SledException
    Throws:
      `SledException`

  - ### Offset

    public Offset(int off, Operand rel)

- ## Method Details

  - ### setRelativeOffset

    public void setRelativeOffset(Hashtable<String,Operand> opHash) throws SledException
    Method setRelativeOffset.
    Parameters:
      `opHash` -
    Throws:
      `SledException`

  - ### getOffset

    public int getOffset(MemBuffer buf, int off) throws Exception
    Method getOffset.
    Parameters:
      `buf` - - a MemBuffer of bytes to parse
      `off` - - 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:
      `Exception`