Package net.i2p.router.transport.ntcp
Class NTCP2Payload.DateTimeBlock
- java.lang.Object
-
- net.i2p.router.transport.ntcp.NTCP2Payload.Block
-
- net.i2p.router.transport.ntcp.NTCP2Payload.DateTimeBlock
-
- Enclosing class:
- NTCP2Payload
public static class NTCP2Payload.DateTimeBlock extends NTCP2Payload.Block
-
-
Constructor Summary
Constructors Constructor Description DateTimeBlock(I2PAppContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDataLength()
int
writeData(byte[] tgt, int off)
-
Methods inherited from class net.i2p.router.transport.ntcp.NTCP2Payload.Block
getTotalLength, toString, write
-
-
-
-
Constructor Detail
-
DateTimeBlock
public DateTimeBlock(I2PAppContext ctx)
-
-
Method Detail
-
getDataLength
public int getDataLength()
- Specified by:
getDataLength
in classNTCP2Payload.Block
- Returns:
- the size of the block, NOT including the 3 byte header (type and size)
-
writeData
public int writeData(byte[] tgt, int off)
- Specified by:
writeData
in classNTCP2Payload.Block
- Returns:
- new offset
-
-