public static class RatchetPayload.PaddingBlock extends RatchetPayload.Block
| Constructor and Description |
|---|
PaddingBlock(int size)Size of the zero-filled padding. |
| Modifier and Type | Method and Description |
|---|---|
int | getDataLength()Data length of the block. |
(package private) void | setSize(int size)Set the padding size, for reuse. |
int | writeData(byte[] tgt,
int off)Writes the block to the output buffer at the given offset. |
getTotalLength, toString, writepublic PaddingBlock(int size)
size - padding size, with zero-filled datapublic int getDataLength()
getDataLength in class RatchetPayload.Blockvoid setSize(int size)
size - the new padding sizepublic int writeData(byte[] tgt,
int off)writeData in class RatchetPayload.Blocktgt - the target bufferoff - the offset