public interface IPacket
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Clone this packet and its payload packet but not its parent.
|
IPacket |
deserialize(byte[] data,
int offset,
int length)
Deprecated.
in Cardinal Release
|
IPacket |
getParent()
Obtain the parent packet.
|
IPacket |
getPayload()
Obtain the packet payload.
|
void |
resetChecksum()
Reset any checksum 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)
Configure a new parent packet.
|
IPacket |
setPayload(IPacket packet)
Assign the packet payload.
|
IPacket getPayload()
IPacket setPayload(IPacket packet)
packet - new payloadIPacket getParent()
IPacket setParent(IPacket packet)
packet - new parentvoid resetChecksum()
byte[] serialize()
@Deprecated IPacket deserialize(byte[] data, int offset, int length)
data - bytes to deserializeoffset - offset to start deserializing fromlength - length of the data to deserializeObject clone()