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() |
int |
writeData(byte[] tgt,
int off) |
getTotalLength, getType, toString, write
public PeerTestBlock(int msgNum, int code, Hash hash, byte[] data)
hash
- may be nullpublic int getDataLength()
getDataLength
in class SSU2Payload.Block
public int writeData(byte[] tgt, int off)
writeData
in class SSU2Payload.Block