public final class NCore extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
NCore.NativeTypeOf
Defines the native type of an object.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DLL_NAME
Name of DLL containing unmanaged part of this component.
|
static com.sun.jna.NativeLibrary |
NATIVE_LIBRARY
The native library.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addErrorSuppressedListener(ErrorSuppressedListener listener)
Adds an error suppressed listener.
|
static com.sun.jna.Pointer |
alloc(int size)
Allocates a block of memory.
|
static com.sun.jna.Pointer |
alloc(long size)
Allocates a block of memory.
|
static com.sun.jna.Pointer |
calloc(int size)
Allocates an array in memory with elements initialized to 0.
|
static com.sun.jna.Pointer |
calloc(long size)
Allocates an array in memory with elements initialized to 0.
|
static void |
clear(com.sun.jna.Pointer pBlock,
int size)
Clears all elements in the specified array.
|
static void |
clear(com.sun.jna.Pointer pBlock,
long size)
Clears all elements in the specified array.
|
static int |
compare(com.sun.jna.Pointer pBlock1,
com.sun.jna.Pointer pBlock2,
int size)
Compares two memory blocks.
|
static int |
compare(com.sun.jna.Pointer pBlock1,
com.sun.jna.Pointer pBlock2,
long size)
Compares two memory blocks.
|
static void |
copy(com.sun.jna.Pointer pDstBlock,
com.sun.jna.Pointer pSrcBlock,
int size)
Copies data from one memory block to other.
|
static void |
copy(com.sun.jna.Pointer pDstBlock,
com.sun.jna.Pointer pSrcBlock,
long size)
Copies data from one memory block to other.
|
static void |
fill(com.sun.jna.Pointer pBlock,
byte value,
int size)
Sets memory block to a specified value.
|
static void |
fill(com.sun.jna.Pointer pBlock,
byte value,
long size)
Sets memory block to a specified value.
|
static void |
free(com.sun.jna.Pointer rBlock)
Frees a specified memory block.
|
static void |
free(com.sun.jna.Pointer rBlock,
NMemoryType memoryType)
Frees a specified memory block.
|
static <T> Set<Class<? extends T>> |
getSubTypesOf(Class<T> type) |
static void |
move(com.sun.jna.Pointer pDstBlock,
com.sun.jna.Pointer pSrcBlock,
int size)
Moves one memory block to another.
|
static void |
move(com.sun.jna.Pointer pDstBlock,
com.sun.jna.Pointer pSrcBlock,
long size)
Moves one memory block to another.
|
static NModule |
nativeModuleOf()
Retrieves a function that retrieves NModule object for the enclosing module.
|
static NType |
nativeTypeOf()
Retrieves the native type for the enclosing class.
|
static NType |
nErrorSuppressedCallbackNativeTypeOf() |
static com.sun.jna.Pointer |
realloc(com.sun.jna.Pointer pBlock,
int size)
Reallocate memory blocks.
|
static com.sun.jna.Pointer |
realloc(com.sun.jna.Pointer pBlock,
long size)
Reallocate memory blocks.
|
static HNObject |
registerModule(com.sun.jna.Pointer pCreate)
Register a created module.
|
static void |
removeErrorSuppressedListener(ErrorSuppressedListener listener)
Removes the error suppressed listener.
|
static void |
shutdown()
Shuts the current task down.
|
static void |
shutdownThread()
Shuts the current thread down.
|
public static final com.sun.jna.NativeLibrary NATIVE_LIBRARY
public static final String DLL_NAME
public static NType nErrorSuppressedCallbackNativeTypeOf()
public static NModule nativeModuleOf()
public static NType nativeTypeOf()
public static com.sun.jna.Pointer alloc(int size)
size - Size in bytes of memory to be allocated.public static com.sun.jna.Pointer alloc(long size)
size - Size in bytes of memory to be allocated.public static com.sun.jna.Pointer calloc(int size)
size - Size in bytes of memory to be allocated.public static com.sun.jna.Pointer calloc(long size)
size - Size in bytes of memory to be allocated.public static com.sun.jna.Pointer realloc(com.sun.jna.Pointer pBlock,
int size)
pBlock - Pointer to memory block to be allocated.size - Size in bytes of new memory block.public static com.sun.jna.Pointer realloc(com.sun.jna.Pointer pBlock,
long size)
pBlock - A Pointer to memory block to be allocated.size - size in bytes of new memory block.public static void free(com.sun.jna.Pointer rBlock)
rBlock - A pointer to previously allocated memory block to be freed.public static void free(com.sun.jna.Pointer rBlock,
NMemoryType memoryType)
rBlock - A pointer to previously allocated memory block to be freed.memoryType - Type of the memory block.public static void copy(com.sun.jna.Pointer pDstBlock,
com.sun.jna.Pointer pSrcBlock,
int size)
pDstBlock - A pointer to destination memory block (a memory block where the data from source memory block will be copied).pSrcBlock - A pointer to memory block to be copied to another memory block.size - The size of memory block to be copied (the size is in bytes).public static void copy(com.sun.jna.Pointer pDstBlock,
com.sun.jna.Pointer pSrcBlock,
long size)
pDstBlock - A pointer to destination memory block (a memory block where the data from source memory block will be copied).pSrcBlock - A pointer to memory block to be copied to another memory block.size - The size of memory block to be copied (the size is in bytes).public static void move(com.sun.jna.Pointer pDstBlock,
com.sun.jna.Pointer pSrcBlock,
int size)
pDstBlock - A pointer to destination memory block.pSrcBlock - A pointer to source memory block.size - size in bytes to be copied.public static void move(com.sun.jna.Pointer pDstBlock,
com.sun.jna.Pointer pSrcBlock,
long size)
pDstBlock - A pointer to destination memory block.pSrcBlock - A pointer to source memory block.size - size in bytes to be copied.
Copies size bytes from pDstBlock to pSrcBlock. Make sure that the destination buffer is the same size or larger than the source buffer.public static void fill(com.sun.jna.Pointer pBlock,
byte value,
int size)
pBlock - A pointer to a destination memory block that contains data.value - A value to set.size - The size in bytes of memory block to be set.public static void fill(com.sun.jna.Pointer pBlock,
byte value,
long size)
pBlock - A pointer to a destination memory block that contains data.value - A value to set.size - The size in bytes of memory block to be set.public static void clear(com.sun.jna.Pointer pBlock,
int size)
pBlock - A pointer to memory block that contains an array.size - The size in bytes of an array.public static void clear(com.sun.jna.Pointer pBlock,
long size)
pBlock - A pointer to memory block that contains an array.size - The size in bytes of an array.public static int compare(com.sun.jna.Pointer pBlock1,
com.sun.jna.Pointer pBlock2,
int size)
pBlock1 - A pointer to the first memory block.pBlock2 - A pointer to the second memory block.size - Number of characters to be compared.public static int compare(com.sun.jna.Pointer pBlock1,
com.sun.jna.Pointer pBlock2,
long size)
pBlock1 - A pointer to the first memory block.pBlock2 - A pointer to the second memory block.size - Number of characters to be compared.public static void shutdownThread()
public static void shutdown()
public static void addErrorSuppressedListener(ErrorSuppressedListener listener)
listener - The error suppressed listener.public static void removeErrorSuppressedListener(ErrorSuppressedListener listener)
listener - The error suppressed listener.public static HNObject registerModule(com.sun.jna.Pointer pCreate)
pCreate - Pointer to a module creating function.public static <T> Set<Class<? extends T>> getSubTypesOf(Class<T> type) throws IOException
IOExceptionCopyright © 2016 Neurotechnology. All rights reserved.