public class OJNADirectMemory extends Object implements ODirectMemory
| Modifier and Type | Field and Description |
|---|---|
static OJNADirectMemory |
INSTANCE |
NULL_POINTER| Constructor and Description |
|---|
OJNADirectMemory() |
| Modifier and Type | Method and Description |
|---|---|
long |
allocate(byte[] bytes) |
long |
allocate(long size) |
void |
free(long pointer) |
void |
get(long pointer,
byte[] array,
int arrayOffset,
int length) |
byte[] |
get(long pointer,
int length) |
byte |
getByte(long pointer) |
char |
getChar(long pointer) |
int |
getInt(long pointer) |
long |
getLong(long pointer) |
short |
getShort(long pointer) |
void |
moveData(long srcPointer,
long destPointer,
long len) |
void |
set(long pointer,
byte[] content,
int arrayOffset,
int length) |
void |
setByte(long pointer,
byte value) |
void |
setChar(long pointer,
char value) |
void |
setInt(long pointer,
int value) |
void |
setLong(long pointer,
long value) |
void |
setShort(long pointer,
short value) |
public static final OJNADirectMemory INSTANCE
public long allocate(byte[] bytes)
allocate in interface ODirectMemorypublic long allocate(long size)
allocate in interface ODirectMemorypublic void free(long pointer)
free in interface ODirectMemorypublic byte[] get(long pointer,
int length)
get in interface ODirectMemorypublic void get(long pointer,
byte[] array,
int arrayOffset,
int length)
get in interface ODirectMemorypublic void set(long pointer,
byte[] content,
int arrayOffset,
int length)
set in interface ODirectMemorypublic int getInt(long pointer)
getInt in interface ODirectMemorypublic void setInt(long pointer,
int value)
setInt in interface ODirectMemorypublic void setShort(long pointer,
short value)
setShort in interface ODirectMemorypublic short getShort(long pointer)
getShort in interface ODirectMemorypublic long getLong(long pointer)
getLong in interface ODirectMemorypublic void setLong(long pointer,
long value)
setLong in interface ODirectMemorypublic byte getByte(long pointer)
getByte in interface ODirectMemorypublic void setByte(long pointer,
byte value)
setByte in interface ODirectMemorypublic void setChar(long pointer,
char value)
setChar in interface ODirectMemorypublic char getChar(long pointer)
getChar in interface ODirectMemorypublic void moveData(long srcPointer,
long destPointer,
long len)
moveData in interface ODirectMemoryCopyright © 2009-2014 Orient Technologies. All Rights Reserved.