public static class SSU2Payload.I2NPBlock extends SSU2Payload.Block
| Constructor and Description |
|---|
I2NPBlock(OutboundMessageState msg)Create an I2NP message block. |
| Modifier and Type | Method and Description |
|---|---|
int | getDataLength()Return the full I2NP message size (9 byte header vs. |
int | writeData(byte[] tgt,
int off)Write the I2NP block data to the target array. |
getTotalLength, getType, toString, writepublic I2NPBlock(OutboundMessageState msg)
msg - the outbound message state containing the I2NP messagepublic 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