Package net.i2p.router.transport.ntcp
Class NTCP2Payload.PaddingBlock
java.lang.Object
net.i2p.router.transport.ntcp.NTCP2Payload.Block
net.i2p.router.transport.ntcp.NTCP2Payload.PaddingBlock
- Enclosing class:
 NTCP2Payload
- 
Constructor Summary
ConstructorsConstructorDescriptionPaddingBlock(int size) with zero-filled dataPaddingBlock(I2PAppContext context, int size) with random data - 
Method Summary
Methods inherited from class net.i2p.router.transport.ntcp.NTCP2Payload.Block
getTotalLength, toString, write 
- 
Constructor Details
- 
PaddingBlock
public PaddingBlock(int size) with zero-filled data - 
PaddingBlock
with random data 
 - 
 - 
Method Details
- 
getDataLength
public int getDataLength()- Specified by:
 getDataLengthin classNTCP2Payload.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 classNTCP2Payload.Block- Returns:
 - new offset
 
 
 -