public class ByteBufferBasicBytez extends Object implements BasicBytez
| Constructor and Description |
|---|
ByteBufferBasicBytez(ByteBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyTo(BasicBytez other,
long otherByteIndex,
long myByteIndex,
long lenBytes) |
byte |
get(long byteIndex) |
void |
getArr(long byteIndex,
byte[] target,
int elemoff,
int numElems)
copy to a byte array
|
boolean |
getBool(long byteIndex) |
void |
getBooleanArr(long byteIndex,
boolean[] target,
int elemoff,
int numElems)
see getArr
|
ByteBuffer |
getBuffer() |
char |
getChar(long byteIndex) |
void |
getCharArr(long byteIndex,
char[] target,
int elemoff,
int numElems)
see getArr
|
double |
getDouble(long byteIndex) |
void |
getDoubleArr(long byteIndex,
double[] target,
int elemoff,
int numElems)
see getArr
|
float |
getFloat(long byteIndex) |
void |
getFloatArr(long byteIndex,
float[] target,
int elemoff,
int numElems)
see getArr
|
int |
getInt(long byteIndex) |
void |
getIntArr(long byteIndex,
int[] target,
int elemoff,
int numElems)
see getArr
|
long |
getLong(long byteIndex) |
void |
getLongArr(long byteIndex,
long[] target,
int elemoff,
int numElems)
see getArr
|
short |
getShort(long byteIndex) |
void |
getShortArr(long byteIndex,
short[] target,
int elemoff,
int numElems)
see getArr
|
long |
length() |
BasicBytez |
newInstance(long size) |
void |
put(long byteIndex,
byte value) |
void |
putBool(long byteIndex,
boolean val) |
void |
putChar(long byteIndex,
char c) |
void |
putDouble(long byteIndex,
double d) |
void |
putFloat(long byteIndex,
float f) |
void |
putInt(long byteIndex,
int i) |
void |
putLong(long byteIndex,
long l) |
void |
putShort(long byteIndex,
short s) |
void |
set(long byteIndex,
byte[] source,
int elemoff,
int numElems) |
void |
setBoolean(long byteIndex,
boolean[] source,
int elemoff,
int siz) |
void |
setBuffer(ByteBuffer buffer) |
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) |
public ByteBufferBasicBytez(ByteBuffer buffer)
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[] source,
int elemoff,
int siz)
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 ByteBuffer getBuffer()
public void setBuffer(ByteBuffer buffer)
Copyright © 2015. All rights reserved.