public class MallocBytez extends Object implements Bytez
| Constructor and Description |
|---|
MallocBytez(long adr,
long 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(Bytez 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) |
int |
getBALength() |
int |
getBAOffsetIndex() |
long |
getBaseAdress() |
boolean |
getBool(long byteIndex) |
boolean |
getBoolVolatile(long byteIndex) |
char |
getChar(long byteIndex) |
void |
getCharArr(long byteIndex,
char[] target,
int elemoff,
int numElems) |
char |
getCharVolatile(long byteIndex) |
double |
getDouble(long byteIndex) |
void |
getDoubleArr(long byteIndex,
double[] target,
int elemoff,
int numElems) |
double |
getDoubleVolatile(long byteIndex) |
float |
getFloat(long byteIndex) |
void |
getFloatArr(long byteIndex,
float[] target,
int elemoff,
int numElems) |
float |
getFloatVolatile(long byteIndex) |
int |
getInt(long byteIndex) |
void |
getIntArr(long byteIndex,
int[] target,
int elemoff,
int numElems) |
int |
getIntVolatile(long byteIndex) |
long |
getLength() |
long |
getLong(long byteIndex) |
void |
getLongArr(long byteIndex,
long[] target,
int elemoff,
int numElems) |
long |
getLongVolatile(long byteIndex) |
short |
getShort(long byteIndex) |
void |
getShortArr(long byteIndex,
short[] target,
int elemoff,
int numElems) |
short |
getShortVolatile(long byteIndex) |
byte |
getVolatile(long byteIndex) |
int |
hashCode() |
long |
length() |
Bytez |
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 |
setBoolean(int 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) |
byte[] |
toBytes(int startIndex,
int len) |
public void putDouble(long byteIndex,
double d)
public void getArr(long byteIndex,
byte[] target,
int elemoff,
int numElems)
public void getCharArr(long byteIndex,
char[] target,
int elemoff,
int numElems)
getCharArr in interface Bytezpublic void getShortArr(long byteIndex,
short[] target,
int elemoff,
int numElems)
getShortArr in interface Bytezpublic void getIntArr(long byteIndex,
int[] target,
int elemoff,
int numElems)
public void getLongArr(long byteIndex,
long[] target,
int elemoff,
int numElems)
getLongArr in interface Bytezpublic void getFloatArr(long byteIndex,
float[] target,
int elemoff,
int numElems)
getFloatArr in interface Bytezpublic void getDoubleArr(long byteIndex,
double[] target,
int elemoff,
int numElems)
getDoubleArr in interface Bytezpublic void set(long byteIndex,
byte[] source,
int elemoff,
int numElems)
public void setChar(long byteIndex,
char[] source,
int elemoff,
int numElems)
public void setShort(long byteIndex,
short[] source,
int elemoff,
int numElems)
public void setInt(long byteIndex,
int[] source,
int elemoff,
int numElems)
public void setLong(long byteIndex,
long[] source,
int elemoff,
int numElems)
public void setFloat(long byteIndex,
float[] source,
int elemoff,
int numElems)
public void setDouble(long byteIndex,
double[] source,
int elemoff,
int numElems)
public void setBoolean(int byteIndex,
boolean[] o,
int elemoff,
int numElems)
setBoolean in interface Bytezpublic void copyTo(Bytez other, long otherByteIndex, long myByteIndex, long lenBytes)
public Bytez newInstance(long size)
newInstance in interface Bytezpublic 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 long getBaseAdress()
public long getLength()
Copyright © 2014. All rights reserved.