public static class NTCP2Payload.PaddingBlock extends NTCP2Payload.Block
| Constructor and Description |
|---|
PaddingBlock(I2PAppContext context,
int size)With random data. |
PaddingBlock(int size)With zero-filled data. |
| Modifier and Type | Method and Description |
|---|---|
int | getDataLength()The data length of this block. |
(package private) void | setSize(int size)Set the size, for reuse of a pooled block. |
int | writeData(byte[] tgt,
int off)Write the block data to the target array. |
getTotalLength, toString, writepublic PaddingBlock(I2PAppContext context, int size)
public PaddingBlock(int size)
public int getDataLength()
getDataLength in class NTCP2Payload.Blockvoid setSize(int size)
public int writeData(byte[] tgt,
int off)writeData in class NTCP2Payload.Block