public class NMemory extends com.sun.jna.Memory implements NDisposable
| Constructor and Description |
|---|
NMemory(long size)
Initializes a new instance of NMemory class.
|
NMemory(com.sun.jna.Pointer ptr,
long size)
Summary
Initializes a new instance of NMemory class.
|
NMemory(com.sun.jna.Pointer ptr,
long size,
boolean ownsPtr)
Initializes a new instance of NMemory class.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
check()
Checks whether allocated resources were not released previously.
|
void |
dispose()
Disposes of the current memory block.
|
protected void |
dispose(boolean disposing) |
protected void |
finalize() |
boolean |
isDisposed()
Gets whether allocated resources were released previously.
|
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, writepublic NMemory(com.sun.jna.Pointer ptr,
long size)
ptr - A pointer to the memory block.size - Size of the memory block.public NMemory(com.sun.jna.Pointer ptr,
long size,
boolean ownsPtr)
ptr - A pointer to the memory block.size - Size of the memory block.ownsPtr - true, if the memory block owns the pointer; else false.public NMemory(long size)
size - Size of the memory block.protected void check()
IllegalStateException - This exception is thrown when allocated resources were released previously.protected void dispose(boolean disposing)
protected void finalize()
finalize in class com.sun.jna.Memorypublic void dispose()
dispose in interface NDisposabledispose in class com.sun.jna.Memorypublic boolean isDisposed()
Copyright © 2016 Neurotechnology. All rights reserved.