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()The data length of this block. |
int | writeData(byte[] tgt,
int off)Write this block's data to the target array. |
getTotalLength, getType, toString, writepublic PeerTestBlock(int msgNum,
int code,
Hash hash,
byte[] data)hash - may be nullpublic int getDataLength()
getDataLength 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