public class SentState
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
com.simsilica.mathd.util.IntRange[] |
acked |
long |
created |
java.util.List<FrameState> |
frames |
int |
messageId |
Constructor and Description |
---|
SentState(int messageId,
com.simsilica.mathd.util.IntRange[] acked,
java.util.List<FrameState> frames) |
Modifier and Type | Method and Description |
---|---|
static SentState |
fromByteArray(int sequenceId,
byte[] buffer,
ObjectStateProtocol protocol) |
int |
getEstimatedHeaderSize()
Returns the number of bits that will be written for the header.
|
boolean |
isBefore(int compare)
Returns true if this state is before the specified messageId.
|
boolean |
isBefore(SentState state) |
static byte[] |
toByteArray(SentState state,
ObjectStateProtocol protocol) |
java.lang.String |
toString() |
public long created
public int messageId
public com.simsilica.mathd.util.IntRange[] acked
public java.util.List<FrameState> frames
public SentState(int messageId, com.simsilica.mathd.util.IntRange[] acked, java.util.List<FrameState> frames)
public boolean isBefore(SentState state)
public boolean isBefore(int compare)
public int getEstimatedHeaderSize()
public static SentState fromByteArray(int sequenceId, byte[] buffer, ObjectStateProtocol protocol) throws java.io.IOException
java.io.IOException
public static byte[] toByteArray(SentState state, ObjectStateProtocol protocol) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object