org.ptolemy.fmi
Interface FMILibrary.FMICallbackAllocateMemory
- All Superinterfaces:
- com.sun.jna.Callback
- All Known Implementing Classes:
- FMULibrary.FMUAllocateMemory
- Enclosing interface:
- FMILibrary
public static interface FMILibrary.FMICallbackAllocateMemory
- extends com.sun.jna.Callback
A callback for the fmiCallbackAllocateMemory() function.
See the documentation for FMICallbackLogger above for details.
Nested classes/interfaces inherited from interface com.sun.jna.Callback |
com.sun.jna.Callback.UncaughtExceptionHandler |
Fields inherited from interface com.sun.jna.Callback |
FORBIDDEN_NAMES, METHOD_NAME |
Method Summary |
com.sun.jna.Pointer |
apply(NativeSizeT numberOfObjects,
NativeSizeT size)
Invoke the fmiCallbackAllocateMemory() function. |
apply
com.sun.jna.Pointer apply(NativeSizeT numberOfObjects,
NativeSizeT size)
- Invoke the fmiCallbackAllocateMemory() function.
Each byte of the allocated memory should be set to 0.
- Parameters:
numberOfObjects
- The number of objects to be allocated.size
- The size of each object to be allocated.
- Returns:
- The allocated memory.