sidnet.core.interfaces
Interface Payload

All Superinterfaces:
JistAPI.Timeless
All Known Implementing Classes:
NotificationMessage, SignalMessage, YesNoMessage

public interface Payload
extends JistAPI.Timeless


Method Summary
 void getBytes(byte[] msg, int offset)
          Store packet into byte array.
 int getSize()
          Return packet size or Constants.ZERO_WIRE_SIZE.
 

Method Detail

getSize

int getSize()
Return packet size or Constants.ZERO_WIRE_SIZE.

Returns:
packet size [in bytes]

getBytes

void getBytes(byte[] msg,
              int offset)
Store packet into byte array.

Parameters:
msg - destination byte array
offset - byte array starting offset