Package | Description |
---|---|
bt.data | |
bt.data.file | |
bt.data.range | |
bt.magnet | |
bt.net.buffer | |
bt.protocol | |
bt.protocol.extended | |
bt.protocol.handler |
Modifier and Type | Method and Description |
---|---|
int |
StorageUnit.writeBlock(ByteBufferView buffer,
long offset)
Try to write a block of data from the provided buffer to this storage, starting with a given offset.
|
default void |
StorageUnit.writeBlockFully(ByteBufferView buffer,
long offset) |
Modifier and Type | Method and Description |
---|---|
int |
FileSystemStorageUnit.writeBlock(ByteBufferView buffer,
long offset) |
int |
OpenFileCache.writeBlock(FileCacheKey key,
ByteBufferView buffer,
long offset)
Write a block to the provided file cache key
|
void |
FileSystemStorageUnit.writeBlockFully(ByteBufferView buffer,
long offset) |
void |
OpenFileCache.writeBlockFully(FileCacheKey key,
ByteBufferView buffer,
long offset)
Fully write a block from the provided file cache key
|
Modifier and Type | Method and Description |
---|---|
void |
ByteRange.putBytes(ByteBufferView _buffer) |
void |
SynchronizedDataRange.putBytes(ByteBufferView buffer) |
void |
Range.putBytes(ByteBufferView buffer)
Put data from the provided buffer at the beginning of this range.
|
void |
SynchronizedRange.putBytes(ByteBufferView buffer) |
void |
BlockRange.putBytes(ByteBufferView buffer) |
void |
DelegatingDataRange.putBytes(ByteBufferView buffer) |
Modifier and Type | Method and Description |
---|---|
int |
UtMetadataMessageHandler.decode(DecodingContext context,
ByteBufferView buffer) |
Class<? extends UtMetadata> |
UtMetadataMessageHandler.readMessageType(ByteBufferView buffer) |
Modifier and Type | Class and Description |
---|---|
class |
DelegatingByteBufferView |
class |
SplicedByteBufferView |
Modifier and Type | Method and Description |
---|---|
ByteBufferView |
BufferedData.buffer() |
ByteBufferView |
SplicedByteBufferView.duplicate() |
ByteBufferView |
ByteBufferView.duplicate() |
ByteBufferView |
DelegatingByteBufferView.duplicate() |
ByteBufferView |
SplicedByteBufferView.get(byte[] dst) |
ByteBufferView |
ByteBufferView.get(byte[] dst) |
ByteBufferView |
DelegatingByteBufferView.get(byte[] dst) |
ByteBufferView |
SplicedByteBufferView.limit(int newLimit) |
ByteBufferView |
ByteBufferView.limit(int newLimit) |
ByteBufferView |
DelegatingByteBufferView.limit(int newLimit) |
ByteBufferView |
SplicedByteBufferView.position(int newPosition) |
ByteBufferView |
ByteBufferView.position(int newPosition) |
ByteBufferView |
DelegatingByteBufferView.position(int newPosition) |
Constructor and Description |
---|
BufferedData(ByteBufferView buffer) |
Modifier and Type | Method and Description |
---|---|
static boolean |
Protocols.canReadInt(ByteBufferView buffer)
Check that remaining bytes in buffer are enough to read an int
|
int |
StandardBittorrentProtocol.decode(DecodingContext context,
ByteBufferView buffer) |
static int |
Protocols.readInt(ByteBufferView buffer)
Decode the binary representation of an
Integer from a buffer. |
Class<? extends T> |
Protocol.readMessageType(ByteBufferView buffer)
Tries to determine the message type based on the (part of the) message available in the byte buffer.
|
Class<? extends Message> |
StandardBittorrentProtocol.readMessageType(ByteBufferView buffer) |
static Short |
Protocols.readShort(ByteBufferView buffer)
Decode the binary representation of a
Short from a buffer. |
Modifier and Type | Method and Description |
---|---|
int |
ExtendedProtocol.doDecode(DecodingContext context,
ByteBufferView buffer) |
Class<? extends ExtendedMessage> |
ExtendedProtocol.readMessageType(ByteBufferView buffer) |
Modifier and Type | Method and Description |
---|---|
int |
MessageHandler.decode(DecodingContext context,
ByteBufferView buffer)
Tries to decode message from the byte buffer.
|
int |
BaseMessageHandler.decode(DecodingContext context,
ByteBufferView buffer) |
int |
PortMessageHandler.doDecode(DecodingContext context,
ByteBufferView buffer) |
int |
ChokeHandler.doDecode(DecodingContext context,
ByteBufferView buffer) |
int |
HaveHandler.doDecode(DecodingContext context,
ByteBufferView buffer) |
int |
PieceHandler.doDecode(DecodingContext context,
ByteBufferView buffer) |
int |
BitfieldHandler.doDecode(DecodingContext context,
ByteBufferView buffer) |
int |
RequestHandler.doDecode(DecodingContext context,
ByteBufferView buffer) |
protected abstract int |
BaseMessageHandler.doDecode(DecodingContext context,
ByteBufferView buffer)
Decode the payload of a message (excluding message prefix -- see
StandardBittorrentProtocol.MESSAGE_PREFIX_SIZE )
and place it into the provided context. |
int |
CancelHandler.doDecode(DecodingContext context,
ByteBufferView buffer) |
int |
NotInterestedHandler.doDecode(DecodingContext context,
ByteBufferView buffer) |
int |
InterestedHandler.doDecode(DecodingContext context,
ByteBufferView buffer) |
int |
UnchokeHandler.doDecode(DecodingContext context,
ByteBufferView buffer) |
Class<? extends T> |
UniqueMessageHandler.readMessageType(ByteBufferView buffer) |
Copyright © 2016–2021. All rights reserved.