Package net.i2p.router.transport.udp
Class SSU2Payload.RIBlock
java.lang.Object
net.i2p.router.transport.udp.SSU2Payload.Block
net.i2p.router.transport.udp.SSU2Payload.RIBlock
- Enclosing class:
SSU2Payload
-
Constructor Summary
-
Method Summary
Methods inherited from class net.i2p.router.transport.udp.SSU2Payload.Block
getTotalLength, getType, toString, write
-
Constructor Details
-
RIBlock
public RIBlock(byte[] ridata, boolean flood, boolean gzipped) Whole thing -
RIBlock
public RIBlock(byte[] ridata, int off, int len, boolean flood, boolean gzipped, int frag, int total) Fragment
-
-
Method Details
-
getDataLength
public int getDataLength()- Specified by:
getDataLength
in 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:
writeData
in classSSU2Payload.Block
- Returns:
- new offset
-