|
intarsys nativeC library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.intarsys.nativec.type.NativeObject
de.intarsys.nativec.type.NativeBuffer
public class NativeBuffer
A wrapper for a sequence of bytes.
| Field Summary | |
|---|---|
static NativeBufferType |
META
The meta class instance |
| Fields inherited from class de.intarsys.nativec.type.NativeObject |
|---|
DEBUG, SHIFT_INT, SHIFT_LONG, SHIFT_LONGLONG, SIZE_BYTE, SIZE_INT, SIZE_LONG, SIZE_LONGLONG, SIZE_SHORT |
| Constructor Summary | |
|---|---|
NativeBuffer(byte[] bytes)
|
|
NativeBuffer(ByteBuffer buffer)
|
|
NativeBuffer(int pSize)
|
|
| Method Summary | |
|---|---|
static NativeBuffer |
createFromAddress(long address)
|
int |
getByteCount()
The number of bytes occupied by this. |
INativeType |
getNativeType()
The meta information and behavior for the NativeObject. |
int |
getSize()
The number of elements in the NativeBuffer |
Object |
getValue()
A Java side representation from the memory. |
void |
setSize(int size)
|
void |
setValue(Object value)
Assign (and marshall to memory) the Java side representation. |
| Methods inherited from class de.intarsys.nativec.type.NativeObject |
|---|
cast, createReference, getByte, getByteArray, getBytes, getCLong, getInt, getNativeHandle, getNativeHandle, getShort, getString, getWideString, isNull, setByte, setByteArray, setCLong, setInt, setNativeHandle, setShort, setString, setWideString, toNestedString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final NativeBufferType META
| Constructor Detail |
|---|
public NativeBuffer(byte[] bytes)
public NativeBuffer(ByteBuffer buffer)
public NativeBuffer(int pSize)
| Method Detail |
|---|
public static NativeBuffer createFromAddress(long address)
public int getByteCount()
NativeObject
getByteCount in class NativeObjectpublic INativeType getNativeType()
NativeObjectThere is exactly one meta instance for all NativeObject instances of a certain type.
getNativeType in interface INativeObjectgetNativeType in class NativeObjectpublic int getSize()
public Object getValue()
INativeObject
INativeObject.public void setSize(int size)
public void setValue(Object value)
INativeObject
value - The new Java value.
|
intarsys nativeC library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||