| Modifier and Type | Class and Description |
|---|---|
class |
AbstractBytes
Abstract bytes implementation.
|
class |
ByteBufferBytes
Byte buffer bytes.
|
class |
DirectBytes
ByteBuffer based direct bytes. |
class |
FileBytes
File bytes.
|
class |
HeapBytes
ByteBuffer based heap bytes. |
class |
MappedBytes
ByteBuffer based mapped bytes. |
class |
NativeBytes
Native bytes.
|
class |
SwappedBytes
Bytes in swapped order.
|
class |
UnsafeDirectBytes
Direct byte buffer bytes.
|
class |
UnsafeHeapBytes
Java heap bytes.
|
class |
UnsafeMappedBytes
Mapped bytes.
|
class |
WrappedBytes
Wrapped bytes.
|
| Modifier and Type | Method and Description |
|---|---|
Bytes |
Buffer.bytes()
Returns the bytes underlying the buffer.
|
Bytes |
AbstractBuffer.bytes() |
Bytes |
WrappedBytes.flush() |
Bytes |
UnsafeMappedBytes.flush() |
Bytes |
MappedBytes.flush() |
Bytes |
FileBytes.flush() |
Bytes |
AbstractBytes.flush() |
Bytes |
Bytes.order(ByteOrder order)
Sets the byte order, returning a new swapped
Bytes instance. |
Bytes |
ByteBufferBytes.order(ByteOrder order) |
Bytes |
AbstractBytes.order(ByteOrder order) |
Bytes |
WrappedBytes.read(int offset,
byte[] dst,
int dstOffset,
int length) |
Bytes |
UnsafeHeapBytes.read(int position,
byte[] bytes,
int offset,
int length) |
Bytes |
NativeBytes.read(int position,
byte[] bytes,
int offset,
int length) |
Bytes |
FileBytes.read(int position,
byte[] bytes,
int offset,
int length) |
Bytes |
ByteBufferBytes.read(int position,
byte[] bytes,
int offset,
int length) |
Bytes |
WrappedBytes.read(int offset,
Bytes dst,
int dstOffset,
int length) |
Bytes |
UnsafeHeapBytes.read(int position,
Bytes bytes,
int offset,
int length) |
Bytes |
NativeBytes.read(int position,
Bytes bytes,
int offset,
int length) |
Bytes |
FileBytes.read(int position,
Bytes bytes,
int offset,
int length) |
Bytes |
ByteBufferBytes.read(int position,
Bytes bytes,
int offset,
int length) |
Bytes |
ByteBufferBytes.reset(ByteBuffer buffer) |
Bytes |
WrappedBytes.resize(int newSize) |
Bytes |
UnsafeHeapBytes.resize(int newSize) |
Bytes |
NativeBytes.resize(int newSize) |
Bytes |
FileBytes.resize(int newSize) |
Bytes |
Bytes.resize(int newSize)
Resizes the bytes.
|
Bytes |
ByteBufferBytes.resize(int newSize) |
Bytes |
WrappedBytes.root()
Returns the root bytes.
|
Bytes |
WrappedBytes.write(int offset,
byte[] src,
int srcOffset,
int length) |
Bytes |
UnsafeHeapBytes.write(int position,
byte[] bytes,
int offset,
int length) |
Bytes |
NativeBytes.write(int position,
byte[] bytes,
int offset,
int length) |
Bytes |
FileBytes.write(int position,
byte[] bytes,
int offset,
int length) |
Bytes |
ByteBufferBytes.write(int position,
byte[] bytes,
int offset,
int length) |
Bytes |
WrappedBytes.write(int offset,
Bytes src,
int srcOffset,
int length) |
Bytes |
UnsafeHeapBytes.write(int position,
Bytes bytes,
int offset,
int length) |
Bytes |
NativeBytes.write(int position,
Bytes bytes,
int offset,
int length) |
Bytes |
FileBytes.write(int position,
Bytes bytes,
int offset,
int length) |
Bytes |
ByteBufferBytes.write(int position,
Bytes bytes,
int offset,
int length) |
Bytes |
WrappedBytes.writeBoolean(int offset,
boolean b) |
Bytes |
UnsafeHeapBytes.writeBoolean(int offset,
boolean b) |
Bytes |
AbstractBytes.writeBoolean(int offset,
boolean b) |
Bytes |
WrappedBytes.writeByte(int offset,
int b) |
Bytes |
UnsafeHeapBytes.writeByte(int offset,
int b) |
Bytes |
NativeBytes.writeByte(int offset,
int b) |
Bytes |
FileBytes.writeByte(int offset,
int b) |
Bytes |
ByteBufferBytes.writeByte(int offset,
int b) |
Bytes |
WrappedBytes.writeChar(int offset,
char c) |
Bytes |
UnsafeHeapBytes.writeChar(int offset,
char c) |
Bytes |
SwappedBytes.writeChar(int offset,
char c) |
Bytes |
NativeBytes.writeChar(int offset,
char c) |
Bytes |
FileBytes.writeChar(int offset,
char c) |
Bytes |
ByteBufferBytes.writeChar(int offset,
char c) |
Bytes |
WrappedBytes.writeDouble(int offset,
double d) |
Bytes |
UnsafeHeapBytes.writeDouble(int offset,
double d) |
Bytes |
SwappedBytes.writeDouble(int offset,
double d) |
Bytes |
NativeBytes.writeDouble(int offset,
double d) |
Bytes |
FileBytes.writeDouble(int offset,
double d) |
Bytes |
ByteBufferBytes.writeDouble(int offset,
double d) |
Bytes |
WrappedBytes.writeFloat(int offset,
float f) |
Bytes |
UnsafeHeapBytes.writeFloat(int offset,
float f) |
Bytes |
SwappedBytes.writeFloat(int offset,
float f) |
Bytes |
NativeBytes.writeFloat(int offset,
float f) |
Bytes |
FileBytes.writeFloat(int offset,
float f) |
Bytes |
ByteBufferBytes.writeFloat(int offset,
float f) |
Bytes |
WrappedBytes.writeInt(int offset,
int i) |
Bytes |
UnsafeHeapBytes.writeInt(int offset,
int i) |
Bytes |
SwappedBytes.writeInt(int offset,
int i) |
Bytes |
NativeBytes.writeInt(int offset,
int i) |
Bytes |
FileBytes.writeInt(int offset,
int i) |
Bytes |
ByteBufferBytes.writeInt(int offset,
int i) |
Bytes |
WrappedBytes.writeLong(int offset,
long l) |
Bytes |
UnsafeHeapBytes.writeLong(int offset,
long l) |
Bytes |
SwappedBytes.writeLong(int offset,
long l) |
Bytes |
NativeBytes.writeLong(int offset,
long l) |
Bytes |
FileBytes.writeLong(int offset,
long l) |
Bytes |
ByteBufferBytes.writeLong(int offset,
long l) |
Bytes |
WrappedBytes.writeMedium(int offset,
int m) |
Bytes |
UnsafeHeapBytes.writeMedium(int offset,
int m) |
Bytes |
SwappedBytes.writeMedium(int offset,
int m) |
Bytes |
NativeBytes.writeMedium(int offset,
int m) |
Bytes |
AbstractBytes.writeMedium(int offset,
int m) |
Bytes |
WrappedBytes.writeShort(int offset,
short s) |
Bytes |
UnsafeHeapBytes.writeShort(int offset,
short s) |
Bytes |
SwappedBytes.writeShort(int offset,
short s) |
Bytes |
NativeBytes.writeShort(int offset,
short s) |
Bytes |
FileBytes.writeShort(int offset,
short s) |
Bytes |
ByteBufferBytes.writeShort(int offset,
short s) |
Bytes |
WrappedBytes.writeString(int offset,
String s) |
Bytes |
AbstractBytes.writeString(int offset,
String s) |
Bytes |
AbstractBytes.writeString(int offset,
String s,
Charset charset) |
Bytes |
WrappedBytes.writeUnsignedByte(int offset,
int b) |
Bytes |
UnsafeHeapBytes.writeUnsignedByte(int offset,
int b) |
Bytes |
AbstractBytes.writeUnsignedByte(int offset,
int b) |
Bytes |
WrappedBytes.writeUnsignedInt(int offset,
long i) |
Bytes |
UnsafeHeapBytes.writeUnsignedInt(int offset,
long i) |
Bytes |
SwappedBytes.writeUnsignedInt(int offset,
long i) |
Bytes |
AbstractBytes.writeUnsignedInt(int offset,
long i) |
Bytes |
WrappedBytes.writeUnsignedMedium(int offset,
int m) |
Bytes |
UnsafeHeapBytes.writeUnsignedMedium(int offset,
int m) |
Bytes |
SwappedBytes.writeUnsignedMedium(int offset,
int m) |
Bytes |
NativeBytes.writeUnsignedMedium(int offset,
int m) |
Bytes |
AbstractBytes.writeUnsignedMedium(int offset,
int m) |
Bytes |
WrappedBytes.writeUnsignedShort(int offset,
int s) |
Bytes |
UnsafeHeapBytes.writeUnsignedShort(int offset,
int s) |
Bytes |
SwappedBytes.writeUnsignedShort(int offset,
int s) |
Bytes |
AbstractBytes.writeUnsignedShort(int offset,
int s) |
Bytes |
WrappedBytes.writeUTF8(int offset,
String s) |
Bytes |
AbstractBytes.writeUTF8(int offset,
String s) |
Bytes |
WrappedBytes.zero() |
Bytes |
UnsafeHeapBytes.zero() |
Bytes |
NativeBytes.zero() |
Bytes |
FileBytes.zero() |
Bytes |
ByteBufferBytes.zero() |
Bytes |
WrappedBytes.zero(int offset) |
Bytes |
UnsafeHeapBytes.zero(int offset) |
Bytes |
NativeBytes.zero(int offset) |
Bytes |
FileBytes.zero(int offset) |
Bytes |
ByteBufferBytes.zero(int offset) |
Bytes |
WrappedBytes.zero(int offset,
int length) |
Bytes |
UnsafeHeapBytes.zero(int offset,
int length) |
Bytes |
NativeBytes.zero(int offset,
int length) |
Bytes |
FileBytes.zero(int offset,
int length) |
Bytes |
ByteBufferBytes.zero(int offset,
int length) |
| Modifier and Type | Method and Description |
|---|---|
T |
BufferInput.read(Bytes bytes)
Reads bytes into the given byte array.
|
Buffer |
Buffer.read(Bytes bytes)
Reads bytes into the given byte array.
|
Buffer |
AbstractBuffer.read(Bytes bytes) |
T |
BufferInput.read(Bytes bytes,
int offset,
int length)
Reads bytes into the given byte array starting at the current position.
|
Buffer |
Buffer.read(Bytes bytes,
int dstOffset,
int length)
Reads bytes into the given byte array starting at the current position.
|
Buffer |
AbstractBuffer.read(Bytes bytes,
int offset,
int length) |
Bytes |
WrappedBytes.read(int offset,
Bytes dst,
int dstOffset,
int length) |
Bytes |
UnsafeHeapBytes.read(int position,
Bytes bytes,
int offset,
int length) |
Bytes |
NativeBytes.read(int position,
Bytes bytes,
int offset,
int length) |
Bytes |
FileBytes.read(int position,
Bytes bytes,
int offset,
int length) |
T |
BytesInput.read(int offset,
Bytes dst,
int dstOffset,
int length)
Reads bytes into the given byte array starting at the given offset up to the given length.
|
Bytes |
ByteBufferBytes.read(int position,
Bytes bytes,
int offset,
int length) |
Buffer |
Buffer.read(int srcOffset,
Bytes bytes,
int dstOffset,
int length)
Reads bytes into the given byte array starting at the given offset up to the given length.
|
Buffer |
AbstractBuffer.read(int srcOffset,
Bytes bytes,
int dstOffset,
int length) |
Buffer |
ReadOnlyBuffer.write(Bytes bytes) |
T |
BufferOutput.write(Bytes bytes)
Writes an array of bytes to the buffer.
|
Buffer |
Buffer.write(Bytes bytes)
Writes an array of bytes to the buffer.
|
Buffer |
AbstractBuffer.write(Bytes bytes) |
Buffer |
ReadOnlyBuffer.write(Bytes bytes,
int offset,
int length) |
T |
BufferOutput.write(Bytes bytes,
int offset,
int length)
Writes an array of bytes to the buffer.
|
Buffer |
Buffer.write(Bytes bytes,
int offset,
int length)
Writes an array of bytes to the buffer.
|
Buffer |
AbstractBuffer.write(Bytes bytes,
int offset,
int length) |
Bytes |
WrappedBytes.write(int offset,
Bytes src,
int srcOffset,
int length) |
Bytes |
UnsafeHeapBytes.write(int position,
Bytes bytes,
int offset,
int length) |
Buffer |
ReadOnlyBuffer.write(int offset,
Bytes bytes,
int srcOffset,
int length) |
Bytes |
NativeBytes.write(int position,
Bytes bytes,
int offset,
int length) |
Bytes |
FileBytes.write(int position,
Bytes bytes,
int offset,
int length) |
T |
BytesOutput.write(int offset,
Bytes src,
int srcOffset,
int length)
Writes an array of bytes to the buffer.
|
Bytes |
ByteBufferBytes.write(int position,
Bytes bytes,
int offset,
int length) |
Buffer |
Buffer.write(int offset,
Bytes src,
int srcOffset,
int length)
Writes an array of bytes to the buffer.
|
Buffer |
AbstractBuffer.write(int offset,
Bytes bytes,
int srcOffset,
int length) |
| Constructor and Description |
|---|
SlicedBuffer(Buffer root,
Bytes bytes,
int offset,
int initialCapacity,
int maxCapacity) |
SwappedBytes(Bytes bytes) |
WrappedBytes(Bytes bytes) |
Copyright © 2013–2017. All rights reserved.