public static class SSU2Payload.DateTimeBlock extends SSU2Payload.Block
| Constructor and Description |
|---|
DateTimeBlock(I2PAppContext ctx)Create a date/time block with the current clock time. |
| Modifier and Type | Method and Description |
|---|---|
int | getDataLength()Return the 4 byte date/time data length. |
int | writeData(byte[] tgt,
int off)Write the date/time block data to the target array. |
getTotalLength, getType, toString, writepublic DateTimeBlock(I2PAppContext ctx)
ctx - the I2P context for reading the clockpublic 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