| Package | Description |
|---|---|
| net.kuujo.catalyst.buffer |
Provides a low-level
Buffer abstraction backed by on- or off-heap memory, memory mapped
files, or RandomAccessFile. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractBytes
Abstract bytes implementation.
|
class |
DirectBytes
Direct byte buffer bytes.
|
class |
FileBytes
File bytes.
|
class |
HeapBytes
Java heap bytes.
|
class |
MappedBytes
Mapped bytes.
|
class |
NativeBytes
Native bytes.
|
class |
SwappedBytes
Bytes in swapped order.
|
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 |
NativeBytes.flush() |
Bytes |
MappedBytes.flush() |
Bytes |
HeapBytes.flush() |
Bytes |
FileBytes.flush() |
Bytes |
Bytes.order(ByteOrder order)
Sets the byte order, returning a new swapped
Bytes instance. |
Bytes |
AbstractBytes.order(ByteOrder order) |
Bytes |
WrappedBytes.read(long offset,
byte[] dst,
long dstOffset,
long length) |
Bytes |
NativeBytes.read(long position,
byte[] bytes,
long offset,
long length) |
Bytes |
HeapBytes.read(long position,
byte[] bytes,
long offset,
long length) |
Bytes |
FileBytes.read(long position,
byte[] bytes,
long offset,
long length) |
Bytes |
WrappedBytes.read(long offset,
Bytes dst,
long dstOffset,
long length) |
Bytes |
NativeBytes.read(long position,
Bytes bytes,
long offset,
long length) |
Bytes |
HeapBytes.read(long position,
Bytes bytes,
long offset,
long length) |
Bytes |
FileBytes.read(long position,
Bytes bytes,
long offset,
long length) |
Bytes |
WrappedBytes.resize(long newSize) |
Bytes |
NativeBytes.resize(long newSize) |
Bytes |
HeapBytes.resize(long newSize) |
Bytes |
FileBytes.resize(long newSize) |
Bytes |
Bytes.resize(long newSize)
Resizes the bytes.
|
Bytes |
WrappedBytes.root()
Returns the root bytes.
|
Bytes |
WrappedBytes.write(long offset,
byte[] src,
long srcOffset,
long length) |
Bytes |
NativeBytes.write(long position,
byte[] bytes,
long offset,
long length) |
Bytes |
HeapBytes.write(long position,
byte[] bytes,
long offset,
long length) |
Bytes |
FileBytes.write(long position,
byte[] bytes,
long offset,
long length) |
Bytes |
WrappedBytes.write(long offset,
Bytes src,
long srcOffset,
long length) |
Bytes |
NativeBytes.write(long position,
Bytes bytes,
long offset,
long length) |
Bytes |
HeapBytes.write(long position,
Bytes bytes,
long offset,
long length) |
Bytes |
FileBytes.write(long position,
Bytes bytes,
long offset,
long length) |
Bytes |
WrappedBytes.writeBoolean(long offset,
boolean b) |
Bytes |
NativeBytes.writeBoolean(long offset,
boolean b) |
Bytes |
HeapBytes.writeBoolean(long offset,
boolean b) |
Bytes |
FileBytes.writeBoolean(long offset,
boolean b) |
Bytes |
WrappedBytes.writeByte(long offset,
int b) |
Bytes |
NativeBytes.writeByte(long offset,
int b) |
Bytes |
HeapBytes.writeByte(long offset,
int b) |
Bytes |
FileBytes.writeByte(long offset,
int b) |
Bytes |
WrappedBytes.writeChar(long offset,
char c) |
Bytes |
SwappedBytes.writeChar(long offset,
char c) |
Bytes |
NativeBytes.writeChar(long offset,
char c) |
Bytes |
HeapBytes.writeChar(long offset,
char c) |
Bytes |
FileBytes.writeChar(long offset,
char c) |
Bytes |
WrappedBytes.writeDouble(long offset,
double d) |
Bytes |
SwappedBytes.writeDouble(long offset,
double d) |
Bytes |
NativeBytes.writeDouble(long offset,
double d) |
Bytes |
HeapBytes.writeDouble(long offset,
double d) |
Bytes |
FileBytes.writeDouble(long offset,
double d) |
Bytes |
WrappedBytes.writeFloat(long offset,
float f) |
Bytes |
SwappedBytes.writeFloat(long offset,
float f) |
Bytes |
NativeBytes.writeFloat(long offset,
float f) |
Bytes |
HeapBytes.writeFloat(long offset,
float f) |
Bytes |
FileBytes.writeFloat(long offset,
float f) |
Bytes |
WrappedBytes.writeInt(long offset,
int i) |
Bytes |
SwappedBytes.writeInt(long offset,
int i) |
Bytes |
NativeBytes.writeInt(long offset,
int i) |
Bytes |
HeapBytes.writeInt(long offset,
int i) |
Bytes |
FileBytes.writeInt(long offset,
int i) |
Bytes |
WrappedBytes.writeLong(long offset,
long l) |
Bytes |
SwappedBytes.writeLong(long offset,
long l) |
Bytes |
NativeBytes.writeLong(long offset,
long l) |
Bytes |
HeapBytes.writeLong(long offset,
long l) |
Bytes |
FileBytes.writeLong(long offset,
long l) |
Bytes |
WrappedBytes.writeMedium(long offset,
int m) |
Bytes |
SwappedBytes.writeMedium(long offset,
int m) |
Bytes |
NativeBytes.writeMedium(long offset,
int m) |
Bytes |
HeapBytes.writeMedium(long offset,
int m) |
Bytes |
FileBytes.writeMedium(long offset,
int m) |
Bytes |
WrappedBytes.writeShort(long offset,
short s) |
Bytes |
SwappedBytes.writeShort(long offset,
short s) |
Bytes |
NativeBytes.writeShort(long offset,
short s) |
Bytes |
HeapBytes.writeShort(long offset,
short s) |
Bytes |
FileBytes.writeShort(long offset,
short s) |
Bytes |
WrappedBytes.writeString(long offset,
String s) |
Bytes |
NativeBytes.writeString(long offset,
String s) |
Bytes |
HeapBytes.writeString(long offset,
String s) |
Bytes |
FileBytes.writeString(long offset,
String s) |
Bytes |
WrappedBytes.writeUnsignedByte(long offset,
int b) |
Bytes |
NativeBytes.writeUnsignedByte(long offset,
int b) |
Bytes |
HeapBytes.writeUnsignedByte(long offset,
int b) |
Bytes |
FileBytes.writeUnsignedByte(long offset,
int b) |
Bytes |
WrappedBytes.writeUnsignedInt(long offset,
long i) |
Bytes |
SwappedBytes.writeUnsignedInt(long offset,
long i) |
Bytes |
NativeBytes.writeUnsignedInt(long offset,
long i) |
Bytes |
HeapBytes.writeUnsignedInt(long offset,
long i) |
Bytes |
FileBytes.writeUnsignedInt(long offset,
long i) |
Bytes |
WrappedBytes.writeUnsignedMedium(long offset,
int m) |
Bytes |
SwappedBytes.writeUnsignedMedium(long offset,
int m) |
Bytes |
NativeBytes.writeUnsignedMedium(long offset,
int m) |
Bytes |
HeapBytes.writeUnsignedMedium(long offset,
int m) |
Bytes |
FileBytes.writeUnsignedMedium(long offset,
int m) |
Bytes |
WrappedBytes.writeUnsignedShort(long offset,
int s) |
Bytes |
SwappedBytes.writeUnsignedShort(long offset,
int s) |
Bytes |
NativeBytes.writeUnsignedShort(long offset,
int s) |
Bytes |
HeapBytes.writeUnsignedShort(long offset,
int s) |
Bytes |
FileBytes.writeUnsignedShort(long offset,
int s) |
Bytes |
WrappedBytes.writeUTF8(long offset,
String s) |
Bytes |
NativeBytes.writeUTF8(long offset,
String s) |
Bytes |
HeapBytes.writeUTF8(long offset,
String s) |
Bytes |
FileBytes.writeUTF8(long offset,
String s) |
Bytes |
WrappedBytes.zero() |
Bytes |
NativeBytes.zero() |
Bytes |
HeapBytes.zero() |
Bytes |
FileBytes.zero() |
Bytes |
WrappedBytes.zero(long offset) |
Bytes |
NativeBytes.zero(long offset) |
Bytes |
HeapBytes.zero(long offset) |
Bytes |
FileBytes.zero(long offset) |
Bytes |
WrappedBytes.zero(long offset,
long length) |
Bytes |
NativeBytes.zero(long offset,
long length) |
Bytes |
HeapBytes.zero(long offset,
long length) |
Bytes |
FileBytes.zero(long offset,
long length) |
| Modifier and Type | Method and Description |
|---|---|
BufferInput |
InputStreamBufferInput.read(Bytes bytes) |
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) |
BufferInput |
InputStreamBufferInput.read(Bytes bytes,
long offset,
long length) |
T |
BufferInput.read(Bytes bytes,
long offset,
long length)
Reads bytes into the given byte array starting at the current position.
|
Buffer |
Buffer.read(Bytes bytes,
long dstOffset,
long length)
Reads bytes into the given byte array starting at the current position.
|
Buffer |
AbstractBuffer.read(Bytes bytes,
long offset,
long length) |
Bytes |
WrappedBytes.read(long offset,
Bytes dst,
long dstOffset,
long length) |
Bytes |
NativeBytes.read(long position,
Bytes bytes,
long offset,
long length) |
Bytes |
HeapBytes.read(long position,
Bytes bytes,
long offset,
long length) |
Bytes |
FileBytes.read(long position,
Bytes bytes,
long offset,
long length) |
T |
BytesInput.read(long offset,
Bytes dst,
long dstOffset,
long length)
Reads bytes into the given byte array starting at the given offset up to the given length.
|
Buffer |
Buffer.read(long srcOffset,
Bytes bytes,
long dstOffset,
long length)
Reads bytes into the given byte array starting at the given offset up to the given length.
|
Buffer |
AbstractBuffer.read(long srcOffset,
Bytes bytes,
long dstOffset,
long length) |
Buffer |
ReadOnlyBuffer.write(Bytes bytes) |
BufferOutput |
OutputStreamBufferOutput.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,
long offset,
long length) |
BufferOutput |
OutputStreamBufferOutput.write(Bytes bytes,
long offset,
long length) |
T |
BufferOutput.write(Bytes bytes,
long offset,
long length)
Writes an array of bytes to the buffer.
|
Buffer |
Buffer.write(Bytes bytes,
long offset,
long length)
Writes an array of bytes to the buffer.
|
Buffer |
AbstractBuffer.write(Bytes bytes,
long offset,
long length) |
Bytes |
WrappedBytes.write(long offset,
Bytes src,
long srcOffset,
long length) |
Buffer |
ReadOnlyBuffer.write(long offset,
Bytes bytes,
long srcOffset,
long length) |
Bytes |
NativeBytes.write(long position,
Bytes bytes,
long offset,
long length) |
Bytes |
HeapBytes.write(long position,
Bytes bytes,
long offset,
long length) |
Bytes |
FileBytes.write(long position,
Bytes bytes,
long offset,
long length) |
T |
BytesOutput.write(long offset,
Bytes src,
long srcOffset,
long length)
Writes an array of bytes to the buffer.
|
Buffer |
Buffer.write(long offset,
Bytes src,
long srcOffset,
long length)
Writes an array of bytes to the buffer.
|
Buffer |
AbstractBuffer.write(long offset,
Bytes bytes,
long srcOffset,
long length) |
| Constructor and Description |
|---|
SlicedBuffer(Buffer root,
Bytes bytes,
long offset,
long initialCapacity,
long maxCapacity) |
SwappedBytes(Bytes bytes) |
WrappedBytes(Bytes bytes) |
Copyright © 2013–2015. All rights reserved.