Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone this packet and its payload packet but not its parent.
|
IPacket |
deserialize(byte[] data,
int offset,
int length)
Deserializes this packet layer and all possible payloads
|
IPacket |
getParent() |
IPacket |
getPayload() |
void |
resetChecksum()
Reset any checksums as needed, and call resetChecksum on all parents
|
byte[] |
serialize()
Sets all payloads parent packet if applicable, then serializes this
packet and all payloads
|
IPacket |
setParent(IPacket packet) |
IPacket |
setPayload(IPacket packet) |
IPacket getPayload()
IPacket getParent()
void resetChecksum()
byte[] serialize()
IPacket deserialize(byte[] data, int offset, int length)
data
- offset
- offset to start deserializing fromlength
- length of the data to deserializejava.lang.Object clone()