Interface EOS_ReallocateMemoryFunc
- All Superinterfaces:
com.sun.jna.Callback
public interface EOS_ReallocateMemoryFunc
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 TypeMethodDescriptioncom.sun.jna.Pointerrun(com.sun.jna.Pointer pointer, NativeSize sizeInBytes, NativeSize alignment) Function prototype type definition for functions that reallocate memory.
-
Method Details
-
run
Function prototype type definition for functions that reallocate memory.Functions passed to EOS_Initialize to serve as memory reallocators should return a pointer to the reallocated 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. Reallocation failures should return a null pointer.
-