public static class SSU2Payload.AckBlock extends SSU2Payload.Block
| Constructor and Description |
|---|
AckBlock(long thru,
int acnt,
byte[] ranges,
int rangeCount)Create an acknowledgment block. |
| Modifier and Type | Method and Description |
|---|---|
int | getDataLength()Return the ACK data length (5 byte header + 2 bytes per range). |
String | toString()toString. |
int | writeData(byte[] tgt,
int off)Write the ACK block data to the target array. |
getTotalLength, getType, writepublic AckBlock(long thru,
int acnt,
byte[] ranges,
int rangeCount)thru - highest contiguous sequence numberacnt - number of additional acks (max 255)ranges - nack/ack/nack/ack rangesrangeCount - number of range pairs (ranges length / 2)public int getDataLength()
getDataLength in class SSU2Payload.Blockpublic String toString()
toString in class SSU2Payload.Blockpublic int writeData(byte[] tgt,
int off)writeData in class SSU2Payload.Blocktgt - target array to write tooff - offset in the target array