de.intarsys.nativec.type
public class NativeBuffer extends NativeObject
Modifier and Type | Field and Description |
---|---|
static NativeBufferType |
META
The meta class instance
|
DEBUG, handle, SHIFT_INT, SHIFT_LONG, SHIFT_LONGLONG, SIZE_BYTE, SIZE_INT, SIZE_LONG, SIZE_LONGLONG, SIZE_PTR, SIZE_SHORT
Modifier | Constructor and Description |
---|---|
|
NativeBuffer(byte[] bytes) |
protected |
NativeBuffer(INativeHandle handle) |
|
NativeBuffer(int pSize) |
Modifier and Type | Method and Description |
---|---|
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
|
java.lang.Object |
getValue()
A Java side representation from the memory.
|
void |
setSize(int size) |
void |
setValue(java.lang.Object value)
Assign (and marshall to memory) the Java side representation.
|
allocate, cast, createReference, getByte, getByteArray, getBytes, getCLong, getInt, getNativeHandle, getNativeHandle, getShort, getString, getWideString, isNull, setByte, setByteArray, setCLong, setInt, setNativeHandle, setShort, setString, setWideString, toNestedString
public static final NativeBufferType META
public NativeBuffer(byte[] bytes)
protected NativeBuffer(INativeHandle handle)
public NativeBuffer(int pSize)
public int getByteCount()
NativeObject
getByteCount
in class NativeObject
public INativeType getNativeType()
NativeObject
There is exactly one meta instance for all NativeObject instances of a certain type.
getNativeType
in interface INativeObject
getNativeType
in class NativeObject
public int getSize()
public java.lang.Object getValue()
INativeObject
INativeObject
.public void setSize(int size)
public void setValue(java.lang.Object value)
INativeObject
value
- The new Java value.