|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.android.ddmlib.JdwpPacket
public final class JdwpPacket
A JDWP packet, sitting at the start of a ByteBuffer somewhere. This allows us to wrap a "pointer" to the data with the results of decoding the packet. None of the operations here are synchronized. If multiple threads will be accessing the same ByteBuffers, external sync will be required. Use the constructor to create an empty packet, or "findPacket()" to wrap a JdwpPacket around existing data.
Field Summary | |
---|---|
static int |
JDWP_HEADER_LEN
|
Method Summary | |
---|---|
int |
getId()
Return the packet's ID. |
java.nio.ByteBuffer |
getPayload()
Return a slice of the byte buffer, positioned past the JDWP header to the start of the chunk header. |
boolean |
is(int cmdSet,
int cmd)
|
boolean |
isReply()
Returns "true" if this JDWP packet is tagged as a reply. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int JDWP_HEADER_LEN
Method Detail |
---|
public java.nio.ByteBuffer getPayload()
public boolean isReply()
public int getId()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean is(int cmdSet, int cmd)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |