Class Procinfo

java.lang.Object
  extended by Procinfo
All Implemented Interfaces:
java.lang.Comparable<Procinfo>

public final class Procinfo
extends java.lang.Object
implements java.lang.Comparable<Procinfo>

The easiest solution would be for Feralcore to serialize the processcontainer and send this back to Fcdebug. The problem is, this takes up too much space, regB is large. Everything must fit in a single UDP packet. So, Procinfocontainer.java was created to store objects of type Procinfo that are not too large. Feralcore sends a serialized Procinfocontainer back in the response.


Field Summary
static Reg32 DISTANCEBEFOREPC
           
static Procinfo EMPTYPROCINFO
           
static int NUMBYTESAROUNDPC
           
 
Constructor Summary
Procinfo(Reg32 pcin, ByteArray processid, ByteArray bytesaroundpcin)
          The caller should pass in the PC of the process reduced modulo the size of core memory so that an accurate total ordering of the PCs can be shown in Fcdebug.
 
Method Summary
 int compareTo(Procinfo compareObject)
           
static Procinfodres deserialize(ByteArray inarray)
           
 ByteArray getbytesaroundpc()
           
 Reg32 getpc()
           
 ByteArray getprocid()
           
 java.lang.String getprocidb64str()
           
 boolean isemptyprocinfo()
           
 ByteArray serialize()
           
static int serializedlength()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTYPROCINFO

public static final Procinfo EMPTYPROCINFO

NUMBYTESAROUNDPC

public static final int NUMBYTESAROUNDPC
See Also:
Constant Field Values

DISTANCEBEFOREPC

public static final Reg32 DISTANCEBEFOREPC
Constructor Detail

Procinfo

public Procinfo(Reg32 pcin,
                ByteArray processid,
                ByteArray bytesaroundpcin)
         throws FeralcoreException
The caller should pass in the PC of the process reduced modulo the size of core memory so that an accurate total ordering of the PCs can be shown in Fcdebug.

Throws:
FeralcoreException
Method Detail

compareTo

public int compareTo(Procinfo compareObject)
Specified by:
compareTo in interface java.lang.Comparable<Procinfo>

isemptyprocinfo

public boolean isemptyprocinfo()

getpc

public Reg32 getpc()

getprocid

public ByteArray getprocid()

getprocidb64str

public java.lang.String getprocidb64str()

getbytesaroundpc

public ByteArray getbytesaroundpc()

serializedlength

public static int serializedlength()

serialize

public ByteArray serialize()

deserialize

public static Procinfodres deserialize(ByteArray inarray)
                                throws FeralcoreException
Throws:
FeralcoreException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object