## Uses of Class
net.i2p.data.ByteArray

- Packages that use ByteArray
  Package | Description
  --- | ---
  net.i2p.client.streaming.impl | Implementation of a TCP-like (reliable, authenticated, in order) set of sockets for communicating over the IP-like (unreliable, unauthenticated, unordered) I2P messages.
  net.i2p.data | These classes define the common data structures used by the various I2P protocols.
  net.i2p.i2ptunnel | Implementation of preconfigured tunnels for both clients and servers, with a comprehensive UI for tunnel management and configuration.
  net.i2p.router.transport.udp | The UDP transport (also known as 'SSU' or Secure Semi-reliable UDP transport) for I2P, allowing I2P messages to be passed over UDP connections.
  net.i2p.util | Core utility classes and helper functions used throughout the I2P router and applications.
  org.klomp.snark | I2P version of the snark bittorrent client, imported in 2005 and heavily enhanced to add a web UI, DHT support, and other features.
  org.klomp.snark.dht | Distributed Hash Table (DHT) implementation for BitTorrent.

- - ### Uses of ByteArray in net.i2p.client.streaming.impl

    Methods in net.i2p.client.streaming.impl that return ByteArray
    Modifier and Type | Method and Description
    --- | ---
    `ByteArray` | Packet.`acquirePayload()`
    `ByteArray` | Packet.`getPayload()` get the actual payload of the message.

    Methods in net.i2p.client.streaming.impl with parameters of type ByteArray
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | MessageInputStream.`messageReceived(long messageId, ByteArray payload)` Accepts a newly received message block.
    `(package private) void` | ConnectionManager.`receivePong(long pingId, ByteArray payload)`
    `void` | Packet.`setPayload(ByteArray payload)`

  - ### Uses of ByteArray in net.i2p.data

    Methods in net.i2p.data with parameters of type ByteArray
    Modifier and Type | Method and Description
    --- | ---
    `int` | ByteArray.`compareTo(ByteArray ba)`

  - ### Uses of ByteArray in net.i2p.i2ptunnel

    Fields in net.i2p.i2ptunnel declared as ByteArray
    Modifier and Type | Field and Description
    --- | ---
    `protected ByteArray` | HTTPResponseOutputStream.`_headerBuffer`

  - ### Uses of ByteArray in net.i2p.router.transport.udp

    Methods in net.i2p.router.transport.udp that return ByteArray
    Modifier and Type | Method and Description
    --- | ---
    `ByteArray[]` | InboundMessageState.`getFragments()` Returns the array of fragments, throws if already released.

  - ### Uses of ByteArray in net.i2p.util

    Methods in net.i2p.util with parameters of type ByteArray
    Modifier and Type | Method and Description
    --- | ---
    `void` | ByteCache.`release(ByteArray entry)` Put this structure back onto the available cache for reuse
    `void` | ByteCache.`release(ByteArray entry, boolean shouldZero)`

  - ### Uses of ByteArray in org.klomp.snark

    Methods in org.klomp.snark that return ByteArray
    Modifier and Type | Method and Description
    --- | ---
    `ByteArray` | Storage.`getPiece(int piece, int off, int len)` Returns a byte array containing a portion of the requested piece or null if the storage doesn't contain the piece yet.
    `ByteArray` | PeerListener.`gotRequest(Peer peer, int piece, int off, int len)` Called when the peer wants (part of) a piece from us.
    `ByteArray` | PeerCoordinator.`gotRequest(Peer peer, int piece, int off, int len)` Returns a byte array containing the requested piece or null of the piece is unknown.
    `ByteArray` | DataLoader.`loadData(int piece, int begin, int length)` This is the callback that PeerConnectionOut calls to get the data from disk
    `ByteArray` | PeerState.`loadData(int piece, int begin, int length)` This is the callback that PeerConnectionOut calls

  - ### Uses of ByteArray in org.klomp.snark.dht

    Subclasses of ByteArray in org.klomp.snark.dht
    Modifier and Type | Class and Description
    --- | ---
    `(package private) class` | `MsgID` Used for both incoming and outgoing message IDs
    `(package private) class` | `Token` DHT token management for secure peer verification.