public class NativeBufferType extends NativeType
| Modifier | Constructor and Description |
|---|---|
protected |
NativeBufferType() |
protected |
NativeBufferType(int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
static NativeBufferType |
create(int size) |
INativeObject |
createNative(INativeHandle handle)
Create a new
INativeObject from a INativeHandle. |
int |
getBufferSize() |
int |
getByteCount()
The size of the type in c memory.
|
int |
getPreferredBoundary()
The boundary where this type as a struct member would want to be aligned.
|
Array, createNative, lookup, Ref, registerprotected NativeBufferType()
protected NativeBufferType(int bufferSize)
public static NativeBufferType create(int size)
public INativeObject createNative(INativeHandle handle)
INativeTypeINativeObject from a INativeHandle.createNative in interface INativeTypecreateNative in class NativeTypehandle - The handle to memory.INativeObjectpublic int getBufferSize()
public int getByteCount()
INativeTypegetByteCount in interface INativeTypegetByteCount in class NativeTypepublic int getPreferredBoundary()
INativeType