public final class ByteBuffer extends Buffer
javolution.util.Struct
when java.nio
is
not available.Modifier and Type | Method and Description |
---|---|
static ByteBuffer |
allocate(int capacity) |
static ByteBuffer |
allocateDirect(int capacity) |
byte[] |
array() |
int |
arrayOffset() |
byte |
get() |
ByteBuffer |
get(byte[] dst) |
ByteBuffer |
get(byte[] dst,
int offset,
int length) |
byte |
get(int index) |
char |
getChar() |
char |
getChar(int index) |
double |
getDouble() |
double |
getDouble(int index) |
float |
getFloat() |
float |
getFloat(int index) |
int |
getInt() |
int |
getInt(int index) |
long |
getLong() |
long |
getLong(int index) |
short |
getShort() |
short |
getShort(int index) |
boolean |
hasArray() |
boolean |
isDirect() |
ByteOrder |
order() |
ByteBuffer |
order(ByteOrder endian) |
ByteBuffer |
put(byte b) |
ByteBuffer |
put(byte[] src) |
ByteBuffer |
put(byte[] src,
int offset,
int length) |
ByteBuffer |
put(ByteBuffer src) |
ByteBuffer |
put(int index,
byte b) |
ByteBuffer |
putChar(char value) |
ByteBuffer |
putChar(int index,
char value) |
ByteBuffer |
putDouble(double value) |
ByteBuffer |
putDouble(int index,
double value) |
ByteBuffer |
putFloat(float value) |
ByteBuffer |
putFloat(int index,
float value) |
ByteBuffer |
putInt(int value) |
ByteBuffer |
putInt(int index,
int value) |
ByteBuffer |
putLong(int index,
long value) |
ByteBuffer |
putLong(long value) |
ByteBuffer |
putShort(int index,
short value) |
ByteBuffer |
putShort(short value) |
static ByteBuffer |
wrap(byte[] array) |
public static ByteBuffer allocateDirect(int capacity)
public static ByteBuffer allocate(int capacity)
public static final ByteBuffer wrap(byte[] array)
public ByteBuffer get(byte[] dst, int offset, int length)
public ByteBuffer get(byte[] dst)
public ByteBuffer put(ByteBuffer src)
public ByteBuffer put(byte[] src, int offset, int length)
public final ByteBuffer put(byte[] src)
public final boolean hasArray()
public final byte[] array()
public final int arrayOffset()
public final ByteOrder order()
public final ByteBuffer order(ByteOrder endian)
public byte get()
public ByteBuffer put(byte b)
public byte get(int index)
public ByteBuffer put(int index, byte b)
public boolean isDirect()
public char getChar()
public ByteBuffer putChar(char value)
public char getChar(int index)
public ByteBuffer putChar(int index, char value)
public short getShort()
public ByteBuffer putShort(short value)
public short getShort(int index)
public ByteBuffer putShort(int index, short value)
public int getInt()
public ByteBuffer putInt(int value)
public int getInt(int index)
public ByteBuffer putInt(int index, int value)
public long getLong()
public ByteBuffer putLong(long value)
public long getLong(int index)
public ByteBuffer putLong(int index, long value)
public float getFloat()
public ByteBuffer putFloat(float value)
public float getFloat(int index)
public ByteBuffer putFloat(int index, float value)
public double getDouble()
public ByteBuffer putDouble(double value)
public double getDouble(int index)
public ByteBuffer putDouble(int index, double value)
Copyright © 2005–2020 Javolution. All rights reserved.