Packages that use ByteArray
Package
Description
Implementation of a TCP-like (reliable, authenticated, in order) set of sockets for communicating over the IP-like (unreliable, unauthenticated, unordered) I2P messages.
Common data structures used by the I2P protocols: Destination, LeaseSet, PublicKey, Signature, Certificate and their friends.
Low-level messages sent between routers - the Invisible Internet Network Protocol (I2NP).
Implementation of preconfigured tunnels for clients and servers, including special-purpose tunnels for IRC, SOCKS, HTTP and streaming.
NTCP2, the TCP transport: framed, ratchet-encrypted and mutually authenticated connections between routers.
SSU2, the UDP transport: datagram sessions with Holepunch peer discovery, plus the older SSU compatibility code.
Tunnel messages and the tunnel layer: the
TunnelManagerFacade, tunnel build request and reply processing, and the inbound and outbound tunnel structures. The SAM bridge: a simple text protocol server letting applications in any language use I2P streaming and datagram sessions without implementing the Invisible Internet Client Protocol (I2CP).
General utility classes shared across the core libraries and the router.
I2P version of the Snark BitTorrent client, enhanced for I2P: peers are I2P destinations, torrents can be served anonymously as hidden services, and metadata carries I2P-specific comment fields.
BitTorrent distributed hash table (DHT) implementation following the Mainline protocol, for trackerless peer discovery.
The I2PSnark web interface (i2psnark.war): servlets and helpers for torrent management, file browsing and configuration.
Uses of ByteArray in net.i2p.client.streaming.impl
Fields in net.i2p.client.streaming.impl declared as ByteArrayModifier and TypeFieldDescriptionprivate ByteArrayConnectionManager.PingRequest._payloadThe payload echoed back by the pong.private ByteArrayPacket._payloadThe data carried by the packet.private static final ByteArrayMessageInputStream.DUMMY_BASentinel used for out-of-order duplicates when stream is closed.private static final ByteArrayConnectionDataReceiver.EMPTY_PAYLOADReusable empty payload -- avoids per-packet ByteArray allocation for ACK-only packets.Fields in net.i2p.client.streaming.impl with type parameters of type ByteArrayModifier and TypeFieldDescriptionMessageInputStream._notYetReadyBlocksBlocks received out of order, keyed by block ID.MessageInputStream._readyDataBlocksOrdered list of fully received data blocks ready for reading.Methods in net.i2p.client.streaming.impl that return ByteArrayModifier and TypeMethodDescriptionPacket.acquirePayload()Allocate a MAX_PAYLOAD_SIZE buffer for this packet.ConnectionManager.PingRequest.getPayload()Payload received in the pong.Packet.getPayload()Actual payload of the message, may be null.Methods in net.i2p.client.streaming.impl with parameters of type ByteArrayModifier and TypeMethodDescriptionbooleanMessageInputStream.messageReceived(long messageId, ByteArray payload) Accepts a newly received message block.voidRecord the pong and notify the caller.(package private) voidConnectionManager.receivePong(long pingId, ByteArray payload) Process a received pong response.voidPacket.setPayload(ByteArray payload) Payload to set.Uses of ByteArray in net.i2p.data
Classes in net.i2p.data that implement interfaces with type arguments of type ByteArrayModifier and TypeClassDescriptionclassWrap up an array of bytes so that they can be compared and placed in hashes, maps, and the like.Methods in net.i2p.data with parameters of type ByteArrayUses of ByteArray in net.i2p.data.i2np
Fields in net.i2p.data.i2np declared as ByteArrayUses of ByteArray in net.i2p.i2ptunnel
Fields in net.i2p.i2ptunnel declared as ByteArrayModifier and TypeFieldDescriptionprotected ByteArrayHTTPResponseOutputStream._headerBufferPooled buffer holding the response header block while it is parsed, null once emitted.Uses of ByteArray in net.i2p.router.transport.ntcp
Fields in net.i2p.router.transport.ntcp declared as ByteArrayModifier and TypeFieldDescriptionprivate ByteArrayNTCPConnection.NTCP2ReadState._dataBufBuffer holding the frame being read.private ByteArrayInboundEstablishState._msg3tmpTemporary buffer for receiving message 3.private ByteArrayInboundEstablishState._payloadTmpCached payload buffer for message 3 processing to reduce pool overhead.Methods in net.i2p.router.transport.ntcp that return ByteArrayModifier and TypeMethodDescriptionprivate static ByteArrayNTCPConnection.acquireReadBuf()Takes a read buffer from the cache.private ByteArrayNTCPConnection.NTCP2ReadState.allocReadBuf(int framelen) Allocate the scratch buffer for the announced frame on the buffered (split-frame) read path.Methods in net.i2p.router.transport.ntcp with parameters of type ByteArrayModifier and TypeMethodDescription(package private) static booleanNTCPConnection.needsFrameBuffer(ByteArray dataBuf, int received, int framelen) Whether the buffered (split-frame) read path needs a fresh destination buffer for the announced frame.private static voidNTCPConnection.releaseReadBuf(ByteArray buf) Returns a read buffer to the cache.Uses of ByteArray in net.i2p.router.transport.udp
Fields in net.i2p.router.transport.udp declared as ByteArrayModifier and TypeFieldDescriptionprivate ByteArray[]InboundMessageState._fragmentsFragments received, by fragment number.Methods in net.i2p.router.transport.udp that return ByteArrayModifier and TypeMethodDescriptionInboundMessageState.getFragments()The array of fragments, throws if already released.Methods in net.i2p.router.transport.udp with parameters of type ByteArrayModifier and TypeMethodDescriptionprivate I2NPMessageMessageReceiver.readMessage(ByteArray buf, InboundMessageState state, I2NPMessageHandler handler) Assemble all the fragments into an I2NP message.Uses of ByteArray in net.i2p.router.tunnel
Fields in net.i2p.router.tunnel declared as ByteArrayModifier and TypeFieldDescriptionprivate final ByteArray[]FragmentedMessage._fragmentsThe fragments received so far.Methods in net.i2p.router.tunnel with parameters of type ByteArrayModifier and TypeMethodDescription(package private) static intFragmentedMessage.countFragments(ByteArray[] fragments, int highFragmentNum) Count the non-null fragment slots from 0 through the high-water mark.Uses of ByteArray in net.i2p.sam
Fields in net.i2p.sam with type parameters of type ByteArrayUses of ByteArray in net.i2p.util
Subclasses with type arguments of type ByteArray in net.i2p.utilModifier and TypeClassDescriptionfinal classCache the objects frequently used to reduce memory churn.Classes in net.i2p.util that implement interfaces with type arguments of type ByteArrayModifier and TypeClassDescriptionprivate static classFactory for cached byte arrays.Methods in net.i2p.util that return ByteArrayModifier and TypeMethodDescriptionByteCache.ByteArrayFactory.newInstance()Create a new byte array of the configured size, marked empty.Methods in net.i2p.util with parameters of type ByteArrayUses of ByteArray in org.klomp.snark
Fields in org.klomp.snark declared as ByteArrayModifier and TypeFieldDescriptionprivate ByteArrayMessage._baCache-backed buffer owned by this message, non-null between successful load and release.Methods in org.klomp.snark that return ByteArrayModifier and TypeMethodDescriptionStorage.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.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.PeerListener.gotRequest(Peer peer, int piece, int off, int len) Called when the peer wants (part of) a piece from us.DataLoader.loadData(int piece, int begin, int length) This is the callback that PeerConnectionOut calls to get the data from disk.PeerState.loadData(int piece, int begin, int length) This is the callback that PeerConnectionOut calls.(package private) ByteArrayMessage.runLoader()Invoke the deferred loader.Methods in org.klomp.snark with parameters of type ByteArrayModifier and TypeMethodDescription(package private) voidMessage.completeLoad(ByteArray ba) Deliver the result of a loader run started afterMessage.claimLoad()returned true.private static voidMessage.releaseBuffer(ByteArray ba) Return a cache-acquired buffer to the pool, mirroringStorage.getPiece(int, int, int)'s acquire condition; non-cache-backed partial-read buffers are simply dropped for GC.Uses of ByteArray in org.klomp.snark.dht
Subclasses of ByteArray in org.klomp.snark.dhtUses of ByteArray in org.klomp.snark.web
Fields in org.klomp.snark.web with type parameters of type ByteArrayModifier and TypeFieldDescription(package private) final Map<ByteArray, I2PSnarkServlet.BadgeInfo> I2PSnarkServlet.RowContext.badgeCachePer-render cache of badge lookups keyed by info hash, shared by every RowContext of the current response; single-threaded.Constructor parameters in org.klomp.snark.web with type arguments of type ByteArrayModifierConstructorDescription(package private)RowContext(Snark snark, int index, boolean showPeers, long[] stats, boolean noThinsp, boolean canWrite, String filterParam, String sortParam, Map<ByteArray, I2PSnarkServlet.BadgeInfo> badgeCache, String token) Holds what one download row needs.