Interface EOS_AllocateMemoryFunc

All Superinterfaces:
com.sun.jna.Callback

public interface EOS_AllocateMemoryFunc extends com.sun.jna.Callback
Since:
8/9/2023
  • Nested Class Summary

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

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

    Fields inherited from interface com.sun.jna.Callback

    FORBIDDEN_NAMES, METHOD_NAME
  • Method Summary

    Modifier and Type
    Method
    Description
    com.sun.jna.Pointer
    run(NativeSize sizeInBytes, NativeSize alignment)
    Function prototype type definition for functions that allocate memory.
  • Method Details

    • run

      com.sun.jna.Pointer run(NativeSize sizeInBytes, NativeSize alignment)
      Function prototype type definition for functions that allocate memory.

      Functions passed to EOS_Initialize to serve as memory allocators should return a pointer to the allocated memory.

      The returned pointer should have at least SizeInBytes available capacity and the memory address should be a multiple of Alignment. The SDK will always call the provided function with an Alignment that is a power of 2. Allocation failures should return a null pointer.