public abstract class ByteBufferAccess extends Object
| Constructor and Description |
|---|
ByteBufferAccess() |
| Modifier and Type | Method and Description |
|---|---|
static ByteBufferAccess |
bigEndian() |
int |
compareExchangeInt16(ByteBuffer buffer,
int index,
int expectedValue,
int newValue)
Emulate 16-bit CAS using 32-bit CAS.
|
abstract int |
compareExchangeInt32(ByteBuffer buffer,
int index,
int expectedValue,
int newValue) |
abstract long |
compareExchangeInt64(ByteBuffer buffer,
int index,
long expectedValue,
long newValue) |
int |
compareExchangeInt8(ByteBuffer buffer,
int index,
int expectedValue,
int newValue)
Emulate 8-bit CAS using 32-bit CAS.
|
static ByteBufferAccess |
forOrder(boolean littleEndian) |
abstract double |
getDouble(ByteBuffer buffer,
int index) |
abstract float |
getFloat(ByteBuffer buffer,
int index) |
abstract int |
getInt16(ByteBuffer buffer,
int index) |
abstract int |
getInt32(ByteBuffer buffer,
int index) |
abstract long |
getInt64(ByteBuffer buffer,
int index) |
int |
getInt8(ByteBuffer buffer,
int index) |
int |
getUint16(ByteBuffer buffer,
int index) |
int |
getUint8(ByteBuffer buffer,
int index) |
static ByteBufferAccess |
littleEndian() |
static ByteBufferAccess |
nativeOrder() |
abstract void |
putDouble(ByteBuffer buffer,
int index,
double value) |
abstract void |
putFloat(ByteBuffer buffer,
int index,
float value) |
abstract void |
putInt16(ByteBuffer buffer,
int index,
int value) |
abstract void |
putInt32(ByteBuffer buffer,
int index,
int value) |
abstract void |
putInt64(ByteBuffer buffer,
int index,
long value) |
void |
putInt8(ByteBuffer buffer,
int index,
int value) |
public final int getInt8(ByteBuffer buffer, int index)
public final int getUint8(ByteBuffer buffer, int index)
public abstract int getInt16(ByteBuffer buffer, int index)
public final int getUint16(ByteBuffer buffer, int index)
public abstract int getInt32(ByteBuffer buffer, int index)
public abstract float getFloat(ByteBuffer buffer, int index)
public abstract double getDouble(ByteBuffer buffer, int index)
public abstract long getInt64(ByteBuffer buffer, int index)
public final void putInt8(ByteBuffer buffer, int index, int value)
public abstract void putInt16(ByteBuffer buffer, int index, int value)
public abstract void putInt32(ByteBuffer buffer, int index, int value)
public abstract void putFloat(ByteBuffer buffer, int index, float value)
public abstract void putDouble(ByteBuffer buffer, int index, double value)
public abstract void putInt64(ByteBuffer buffer, int index, long value)
public abstract int compareExchangeInt32(ByteBuffer buffer, int index, int expectedValue, int newValue)
public abstract long compareExchangeInt64(ByteBuffer buffer, int index, long expectedValue, long newValue)
public int compareExchangeInt8(ByteBuffer buffer, int index, int expectedValue, int newValue)
public int compareExchangeInt16(ByteBuffer buffer, int index, int expectedValue, int newValue)
public static final ByteBufferAccess littleEndian()
public static final ByteBufferAccess bigEndian()
public static final ByteBufferAccess nativeOrder()
public static final ByteBufferAccess forOrder(boolean littleEndian)