public class HeapBytez extends Object implements Bytez
| Constructor and Description |
|---|
HeapBytez(byte[] base) |
HeapBytez(byte[] base,
long offIndex) |
HeapBytez(byte[] base,
long offIndex,
long len) |
HeapBytez(int size) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
asByteArray() |
boolean |
compareAndSwapInt(long offset,
int expect,
int newVal) |
boolean |
compareAndSwapLong(long offset,
long expect,
long newVal) |
void |
copyTo(BasicBytez other,
long otherByteIndex,
long myByteIndex,
long lenBytes) |
boolean |
equals(Object obj) |
byte |
get(long byteIndex) |
void |
getArr(long byteIndex,
byte[] target,
int elemoff,
int numElems)
copy to a byte array
|
int |
getBALength() |
int |
getBAOffsetIndex() |
byte[] |
getBase() |
boolean |
getBool(long byteIndex) |
void |
getBooleanArr(long byteIndex,
boolean[] target,
int elemoff,
int numElems)
see getArr
|
boolean |
getBoolVolatile(long byteIndex) |
char |
getChar(long byteIndex) |
void |
getCharArr(long byteIndex,
char[] target,
int elemoff,
int numElems)
see getArr
|
char |
getCharVolatile(long byteIndex) |
double |
getDouble(long byteIndex) |
void |
getDoubleArr(long byteIndex,
double[] target,
int elemoff,
int numElems)
see getArr
|
double |
getDoubleVolatile(long byteIndex) |
float |
getFloat(long byteIndex) |
void |
getFloatArr(long byteIndex,
float[] target,
int elemoff,
int numElems)
see getArr
|
float |
getFloatVolatile(long byteIndex) |
int |
getInt(long byteIndex) |
void |
getIntArr(long byteIndex,
int[] target,
int elemoff,
int numElems)
see getArr
|
int |
getIntVolatile(long byteIndex) |
long |
getLong(long byteIndex) |
void |
getLongArr(long byteIndex,
long[] target,
int elemoff,
int numElems)
see getArr
|
long |
getLongVolatile(long byteIndex) |
long |
getOff() |
long |
getOffsetIndex() |
short |
getShort(long byteIndex) |
void |
getShortArr(long byteIndex,
short[] target,
int elemoff,
int numElems)
see getArr
|
short |
getShortVolatile(long byteIndex) |
byte |
getVolatile(long byteIndex) |
int |
hashCode() |
long |
length() |
BasicBytez |
newInstance(long size) |
void |
put(long byteIndex,
byte value) |
void |
putBool(long byteIndex,
boolean val) |
void |
putBoolVolatile(long byteIndex,
boolean value) |
void |
putChar(long byteIndex,
char c) |
void |
putCharVolatile(long byteIndex,
char c) |
void |
putDouble(long byteIndex,
double d) |
void |
putDoubleVolatile(long byteIndex,
double d) |
void |
putFloat(long byteIndex,
float f) |
void |
putFloatVolatile(long byteIndex,
float f) |
void |
putInt(long byteIndex,
int i) |
void |
putIntVolatile(long byteIndex,
int i) |
void |
putLong(long byteIndex,
long l) |
void |
putLongVolatile(long byteIndex,
long l) |
void |
putShort(long byteIndex,
short s) |
void |
putShortVolatile(long byteIndex,
short s) |
void |
putVolatile(long byteIndex,
byte value) |
void |
set(long byteIndex,
byte[] source,
int elemoff,
int numElems) |
void |
setBase(byte[] base,
long offIndex,
long len) |
void |
setBoolean(long byteIndex,
boolean[] o,
int elemoff,
int numElems) |
void |
setChar(long byteIndex,
char[] source,
int elemoff,
int numElems) |
void |
setDouble(long byteIndex,
double[] source,
int elemoff,
int numElems) |
void |
setFloat(long byteIndex,
float[] source,
int elemoff,
int numElems) |
void |
setInt(long byteIndex,
int[] source,
int elemoff,
int numElems) |
void |
setLong(long byteIndex,
long[] source,
int elemoff,
int numElems) |
void |
setShort(long byteIndex,
short[] source,
int elemoff,
int numElems) |
HeapBytez |
slice(long off,
int len) |
byte[] |
toBytes(long startIndex,
int len) |
String |
toString() |
public HeapBytez(byte[] base)
public HeapBytez(int size)
public HeapBytez(byte[] base,
long offIndex)
public HeapBytez(byte[] base,
long offIndex,
long len)
public void setBase(byte[] base,
long offIndex,
long len)
public byte get(long byteIndex)
get in interface BasicBytezget in interface ByteSourcepublic boolean getBool(long byteIndex)
getBool in interface BasicBytezpublic char getChar(long byteIndex)
getChar in interface BasicBytezpublic short getShort(long byteIndex)
getShort in interface BasicBytezpublic int getInt(long byteIndex)
getInt in interface BasicBytezpublic long getLong(long byteIndex)
getLong in interface BasicBytezpublic float getFloat(long byteIndex)
getFloat in interface BasicBytezpublic double getDouble(long byteIndex)
getDouble in interface BasicBytezpublic void put(long byteIndex,
byte value)
put in interface BasicBytezput in interface ByteSinkpublic void putBool(long byteIndex,
boolean val)
putBool in interface BasicBytezpublic void putChar(long byteIndex,
char c)
putChar in interface BasicBytezpublic void putShort(long byteIndex,
short s)
putShort in interface BasicBytezpublic void putInt(long byteIndex,
int i)
putInt in interface BasicBytezpublic void putLong(long byteIndex,
long l)
putLong in interface BasicBytezpublic void putFloat(long byteIndex,
float f)
putFloat in interface BasicBytezpublic void putDouble(long byteIndex,
double d)
putDouble in interface BasicBytezpublic long length()
length in interface BasicBytezlength in interface ByteSinklength in interface ByteSourcepublic void getArr(long byteIndex,
byte[] target,
int elemoff,
int numElems)
BasicBytezgetArr in interface BasicBytezbyteIndex - - offset index in this buffer to start copyingtarget - - array to copy toelemoff - - offset in target arraynumElems - - length to copy topublic void getCharArr(long byteIndex,
char[] target,
int elemoff,
int numElems)
BasicBytezgetCharArr in interface BasicBytezpublic void getShortArr(long byteIndex,
short[] target,
int elemoff,
int numElems)
BasicBytezgetShortArr in interface BasicBytezpublic void getIntArr(long byteIndex,
int[] target,
int elemoff,
int numElems)
BasicBytezgetIntArr in interface BasicBytezpublic void getLongArr(long byteIndex,
long[] target,
int elemoff,
int numElems)
BasicBytezgetLongArr in interface BasicBytezpublic void getFloatArr(long byteIndex,
float[] target,
int elemoff,
int numElems)
BasicBytezgetFloatArr in interface BasicBytezpublic void getDoubleArr(long byteIndex,
double[] target,
int elemoff,
int numElems)
BasicBytezgetDoubleArr in interface BasicBytezpublic void getBooleanArr(long byteIndex,
boolean[] target,
int elemoff,
int numElems)
BasicBytezgetBooleanArr in interface BasicBytezpublic void set(long byteIndex,
byte[] source,
int elemoff,
int numElems)
set in interface BasicBytezpublic void setChar(long byteIndex,
char[] source,
int elemoff,
int numElems)
setChar in interface BasicBytezpublic void setShort(long byteIndex,
short[] source,
int elemoff,
int numElems)
setShort in interface BasicBytezpublic void setInt(long byteIndex,
int[] source,
int elemoff,
int numElems)
setInt in interface BasicBytezpublic void setLong(long byteIndex,
long[] source,
int elemoff,
int numElems)
setLong in interface BasicBytezpublic void setFloat(long byteIndex,
float[] source,
int elemoff,
int numElems)
setFloat in interface BasicBytezpublic void setDouble(long byteIndex,
double[] source,
int elemoff,
int numElems)
setDouble in interface BasicBytezpublic void setBoolean(long byteIndex,
boolean[] o,
int elemoff,
int numElems)
setBoolean in interface BasicBytezpublic void copyTo(BasicBytez other, long otherByteIndex, long myByteIndex, long lenBytes)
copyTo in interface BasicBytezcopyTo in interface ByteSinkpublic BasicBytez newInstance(long size)
newInstance in interface BasicBytezpublic boolean compareAndSwapInt(long offset,
int expect,
int newVal)
compareAndSwapInt in interface Bytezpublic boolean compareAndSwapLong(long offset,
long expect,
long newVal)
compareAndSwapLong in interface Bytezpublic byte[] asByteArray()
asByteArray in interface Bytezpublic int getBAOffsetIndex()
getBAOffsetIndex in interface Bytezpublic int getBALength()
getBALength in interface Bytezpublic boolean getBoolVolatile(long byteIndex)
getBoolVolatile in interface Bytezpublic byte getVolatile(long byteIndex)
getVolatile in interface Bytezpublic char getCharVolatile(long byteIndex)
getCharVolatile in interface Bytezpublic short getShortVolatile(long byteIndex)
getShortVolatile in interface Bytezpublic int getIntVolatile(long byteIndex)
getIntVolatile in interface Bytezpublic long getLongVolatile(long byteIndex)
getLongVolatile in interface Bytezpublic float getFloatVolatile(long byteIndex)
getFloatVolatile in interface Bytezpublic double getDoubleVolatile(long byteIndex)
getDoubleVolatile in interface Bytezpublic void putBoolVolatile(long byteIndex,
boolean value)
putBoolVolatile in interface Bytezpublic void putVolatile(long byteIndex,
byte value)
putVolatile in interface Bytezpublic void putCharVolatile(long byteIndex,
char c)
putCharVolatile in interface Bytezpublic void putShortVolatile(long byteIndex,
short s)
putShortVolatile in interface Bytezpublic void putIntVolatile(long byteIndex,
int i)
putIntVolatile in interface Bytezpublic void putLongVolatile(long byteIndex,
long l)
putLongVolatile in interface Bytezpublic void putFloatVolatile(long byteIndex,
float f)
putFloatVolatile in interface Bytezpublic void putDoubleVolatile(long byteIndex,
double d)
putDoubleVolatile in interface Bytezpublic byte[] getBase()
public long getOff()
public long getOffsetIndex()
Copyright © 2015. All rights reserved.