public static class FMULibrary.FMUAllocateMemory extends java.lang.Object implements FMILibrary.FMICallbackAllocateMemory
Modifier and Type | Field and Description |
---|---|
static java.util.Map<com.sun.jna.Pointer,com.sun.jna.Memory> |
pointers
Keep references to memory that has been allocated and
avoid problems with the memory being garbage collected.
|
Constructor and Description |
---|
FMUAllocateMemory() |
Modifier and Type | Method and Description |
---|---|
com.sun.jna.Pointer |
apply(NativeSizeT numberOfObjects,
NativeSizeT size)
Allocate memory.
|
public static final java.util.Map<com.sun.jna.Pointer,com.sun.jna.Memory> pointers
public com.sun.jna.Pointer apply(NativeSizeT numberOfObjects, NativeSizeT size)
apply
in interface FMILibrary.FMICallbackAllocateMemory
numberOfObjects
- The number of objects to allocate.size
- The size of the object in bytes.