Package net.i2p.router.crypto.ratchet
Class RatchetPayload.TerminationBlock
java.lang.Object
net.i2p.router.crypto.ratchet.RatchetPayload.Block
net.i2p.router.crypto.ratchet.RatchetPayload.TerminationBlock
- Enclosing class:
- RatchetPayload
public static class RatchetPayload.TerminationBlock extends RatchetPayload.Block
-
Constructor Summary
Constructors Constructor Description TerminationBlock(int reason)
-
Method Summary
Modifier and Type Method Description int
getDataLength()
int
writeData(byte[] tgt, int off)
Methods inherited from class net.i2p.router.crypto.ratchet.RatchetPayload.Block
getTotalLength, toString, write
-
Constructor Details
-
TerminationBlock
public TerminationBlock(int reason)
-
-
Method Details
-
getDataLength
public int getDataLength()- Specified by:
getDataLength
in 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:
writeData
in classRatchetPayload.Block
- Returns:
- new offset
-