public interface StaticBuffer extends Comparable<StaticBuffer>
Modifier and Type | Interface and Description |
---|---|
static interface |
StaticBuffer.Factory<T> |
Modifier and Type | Field and Description |
---|---|
static StaticBuffer.Factory<byte[]> |
ARRAY_FACTORY |
static StaticBuffer.Factory<ByteBuffer> |
BB_FACTORY |
static StaticBuffer.Factory<StaticBuffer> |
STATIC_FACTORY |
Modifier and Type | Method and Description |
---|---|
<T> T |
as(StaticBuffer.Factory<T> factory) |
ByteBuffer |
asByteBuffer() |
ReadBuffer |
asReadBuffer() |
boolean |
getBoolean(int position) |
byte |
getByte(int position) |
byte[] |
getBytes(int position,
int length) |
char |
getChar(int position) |
char[] |
getChars(int position,
int length) |
double |
getDouble(int position) |
double[] |
getDoubles(int position,
int length) |
float |
getFloat(int position) |
float[] |
getFloats(int position,
int length) |
int |
getInt(int position) |
int[] |
getInts(int position,
int length) |
long |
getLong(int position) |
long[] |
getLongs(int position,
int length) |
short |
getShort(int position) |
short[] |
getShorts(int position,
int length) |
int |
length() |
StaticBuffer |
subrange(int position,
int length) |
StaticBuffer |
subrange(int position,
int length,
boolean invert) |
compareTo
static final StaticBuffer.Factory<byte[]> ARRAY_FACTORY
static final StaticBuffer.Factory<ByteBuffer> BB_FACTORY
static final StaticBuffer.Factory<StaticBuffer> STATIC_FACTORY
int length()
byte getByte(int position)
boolean getBoolean(int position)
short getShort(int position)
int getInt(int position)
long getLong(int position)
char getChar(int position)
float getFloat(int position)
double getDouble(int position)
byte[] getBytes(int position, int length)
short[] getShorts(int position, int length)
int[] getInts(int position, int length)
long[] getLongs(int position, int length)
char[] getChars(int position, int length)
float[] getFloats(int position, int length)
double[] getDoubles(int position, int length)
StaticBuffer subrange(int position, int length)
StaticBuffer subrange(int position, int length, boolean invert)
ReadBuffer asReadBuffer()
<T> T as(StaticBuffer.Factory<T> factory)
ByteBuffer asByteBuffer()
Copyright © 2012–2024. All rights reserved.