net.i2p.router.transport.udp

## Class SSU2Payload.I2NPBlock

- java.lang.Object
- - net.i2p.router.transport.udp.SSU2Payload.Block
  - - net.i2p.router.transport.udp.SSU2Payload.I2NPBlock

- Enclosing class:
    SSU2Payload

      public static class SSU2Payload.I2NPBlock
      extends SSU2Payload.Block

  Block containing I2NP message data. Used to transport I2NP messages over SSU2.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `I2NPBlock(OutboundMessageState msg)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getDataLength()`
    `int` | `writeData(byte[] tgt, int off)`

    - ### Methods inherited from class net.i2p.router.transport.udp.SSU2Payload.Block

      `getTotalLength, getType, toString, write`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### I2NPBlock

          public I2NPBlock(OutboundMessageState msg)

  - ### Method Detail

    - #### getDataLength

          public int getDataLength()

      Specified by:
        `getDataLength` in class `SSU2Payload.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 class `SSU2Payload.Block`
      Returns:
        new offset