Class Offset

  • All Implemented Interfaces:
    java.io.Serializable

    public class Offset
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Offset​(int off, Operand rel)  
      Offset​(int off, java.lang.String name)  
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 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:
        java.lang.Exception