public static class RatchetPayload.GarlicBlock extends RatchetPayload.Block
| Constructor and Description |
|---|
GarlicBlock(GarlicClove clove)The clove carried by this block. |
| Modifier and Type | Method and Description |
|---|---|
int | getDataLength()Data length of the block. |
(package private) void | setClove(GarlicClove clove)Set the clove carried by this block, for reuse. |
int | writeData(byte[] tgt,
int off)Writes the block to the output buffer at the given offset. |
getTotalLength, toString, writepublic GarlicBlock(GarlicClove clove)
clove - the garlic clovepublic int getDataLength()
getDataLength in class RatchetPayload.Blockvoid setClove(GarlicClove clove)
clove - the garlic clovepublic int writeData(byte[] tgt,
int off)writeData in class RatchetPayload.Blocktgt - the target bufferoff - the offset