public abstract class NativeArray<E> extends NMemory
| Modifier and Type | Field and Description |
|---|---|
protected int |
count |
protected Class<E> |
elementClass |
protected int |
elementSize |
| Constructor and Description |
|---|
NativeArray(Class<E> elementClass,
int count,
int elementSize) |
NativeArray(Class<E> elementClass,
com.sun.jna.Pointer ptr,
int count,
boolean ownsPtr,
int elementSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
detach(com.sun.jna.ptr.PointerByReference rValues,
com.sun.jna.ptr.IntByReference rCount) |
E[] |
getObjectArray() |
void |
getObjectArray(E[] array,
int count) |
E[] |
getObjectArray(int count) |
int |
length() |
protected abstract void |
read(E[] values,
int count) |
com.sun.jna.Pointer |
release() |
int |
setObjectArray(E[] array) |
protected abstract void |
write(E[] values) |
align, boundsCheck, clear, disposeAll, dump, free, getByte, getByteBuffer, getChar, getDouble, getFloat, getInt, getLong, getPointer, getShort, getString, getWideString, malloc, purge, read, read, read, read, read, read, read, setByte, setChar, setDouble, setFloat, setInt, setLong, setPointer, setShort, setString, setWideString, share, share, size, toString, valid, write, write, write, write, write, write, writeclear, createConstant, createConstant, dump, equals, getByteArray, getCharArray, getDoubleArray, getFloatArray, getIntArray, getLongArray, getNativeLong, getPointerArray, getPointerArray, getShortArray, getString, getString, getStringArray, getStringArray, getStringArray, getStringArray, getStringArray, getStringArray, getWideStringArray, getWideStringArray, hashCode, indexOf, nativeValue, nativeValue, read, setMemory, setNativeLong, setString, setString, setString, writeprotected abstract void read(E[] values, int count)
protected abstract void write(E[] values)
public com.sun.jna.Pointer release()
public void detach(com.sun.jna.ptr.PointerByReference rValues,
com.sun.jna.ptr.IntByReference rCount)
public final E[] getObjectArray()
public E[] getObjectArray(int count)
public final void getObjectArray(E[] array, int count)
public final int setObjectArray(E[] array)
public final int length()
Copyright © 2016 Neurotechnology. All rights reserved.