Package net.i2p.router.crypto.ratchet
Class RatchetPayload.GarlicBlock
- java.lang.Object
-
- net.i2p.router.crypto.ratchet.RatchetPayload.Block
-
- net.i2p.router.crypto.ratchet.RatchetPayload.GarlicBlock
-
- Enclosing class:
- RatchetPayload
public static class RatchetPayload.GarlicBlock extends RatchetPayload.Block
-
-
Constructor Summary
Constructors Constructor Description GarlicBlock(GarlicClove clove)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDataLength()intwriteData(byte[] tgt, int off)-
Methods inherited from class net.i2p.router.crypto.ratchet.RatchetPayload.Block
getTotalLength, toString, write
-
-
-
-
Constructor Detail
-
GarlicBlock
public GarlicBlock(GarlicClove clove)
-
-
Method Detail
-
getDataLength
public int getDataLength()
- Specified by:
getDataLengthin classRatchetPayload.Block- Returns:
- the size of the block, NOT including the 3 byte header (type and size)
-
writeData
public int writeData(byte[] tgt, int off)- Specified by:
writeDatain classRatchetPayload.Block- Returns:
- new offset
-
-