public interface IPacket
Modifier and Type | Method and Description |
---|---|
byte[] |
getPayload()
Returns the payload of the packet.
|
void |
setPayload(byte[] payload)
Sets the payload of the packet.
|
byte[] getPayload()
void setPayload(byte[] payload) throws java.lang.IndexOutOfBoundsException
payload
- The payload of the packet.java.lang.IndexOutOfBoundsException
- Thrown if the payload does not fit into
the length of the packet.