Class FMULibrary.FMUAllocateMemory

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.sun.jna.Callback

        com.sun.jna.Callback.UncaughtExceptionHandler
    • Field Summary

      Fields 
      Modifier and Type Field 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.
      • Fields inherited from interface com.sun.jna.Callback

        FORBIDDEN_NAMES, METHOD_NAME
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.sun.jna.Pointer apply​(NativeSizeT numberOfObjects, NativeSizeT size)
      Allocate memory.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • pointers

        public static final 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. FindBugs suggests that this be final.
    • Constructor Detail

      • FMUAllocateMemory

        public FMUAllocateMemory()
    • Method Detail

      • apply

        public com.sun.jna.Pointer apply​(NativeSizeT numberOfObjects,
                                         NativeSizeT size)
        Allocate memory.
        Specified by:
        apply in interface FMILibrary.FMICallbackAllocateMemory
        Parameters:
        numberOfObjects - The number of objects to allocate.
        size - The size of the object in bytes.
        Returns:
        a Pointer to the allocated memory.