public static class SSU2Payload.PeerTestBlock extends SSU2Payload.Block
| Constructor and Description |
|---|
PeerTestBlock(int msgNum,
int code,
Hash hash,
byte[] data) |
| Modifier and Type | Method and Description |
|---|---|
int | getDataLength()Return the size of the block data, excluding the 3 byte header. |
int | writeData(byte[] tgt,
int off)writeData. |
getTotalLength, getType, toString, writepublic PeerTestBlock(int msgNum,
int code,
Hash hash,
byte[] data)hash - may be nullpublic int getDataLength()
SSU2Payload.BlockgetDataLength in class SSU2Payload.Blockpublic int writeData(byte[] tgt,
int off)writeData in class SSU2Payload.Blocktgt - target array to write tooff - offset in the target array