public static class RatchetPayload.AckBlock extends RatchetPayload.Block
| Constructor and Description |
|---|
AckBlock(int keyID,
int n)Builds an ACK block for a single key ID and count. |
AckBlock(List<Integer> acks)ACK block for multiple key IDs and counts. |
| Modifier and Type | Method and Description |
|---|---|
int | getDataLength()Data length of the block. |
(package private) void | setAcks(List<Integer> acks)Set the ACK data, for reuse. |
int | writeData(byte[] tgt,
int off)Writes the block to the output buffer at the given offset. |
getTotalLength, toString, writepublic AckBlock(int keyID,
int n)public int getDataLength()
getDataLength in class RatchetPayload.Blockvoid setAcks(List<Integer> acks)
acks - each is id << 16 | npublic int writeData(byte[] tgt,
int off)writeData in class RatchetPayload.Blocktgt - the target bufferoff - the offset