Package net.i2p.router.transport.udp
Class SSU2Payload.OptionsBlock
- java.lang.Object
-
- net.i2p.router.transport.udp.SSU2Payload.Block
-
- net.i2p.router.transport.udp.SSU2Payload.OptionsBlock
-
- Enclosing class:
- SSU2Payload
public static class SSU2Payload.OptionsBlock extends SSU2Payload.Block
-
-
Constructor Summary
Constructors Constructor Description OptionsBlock(byte[] options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDataLength()intwriteData(byte[] tgt, int off)-
Methods inherited from class net.i2p.router.transport.udp.SSU2Payload.Block
getTotalLength, getType, toString, write
-
-
-
-
Method Detail
-
getDataLength
public int getDataLength()
- Specified by:
getDataLengthin classSSU2Payload.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:
writeDatain classSSU2Payload.Block- Returns:
- new offset
-
-