Class AllocationMonitor.JGMPRealloc
java.lang.Object
it.unich.jgmp.AllocationMonitor.JGMPRealloc
- All Implemented Interfaces:
com.sun.jna.Callback, ReallocFunc
- Enclosing class:
AllocationMonitor
The custom reallocator.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sun.jna.Callback
com.sun.jna.Callback.UncaughtExceptionHandler -
Field Summary
FieldsFields inherited from interface com.sun.jna.Callback
FORBIDDEN_NAMES, METHOD_NAME -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
rfp
-
-
Constructor Details
-
JGMPRealloc
JGMPRealloc(ReallocFuncByReference rfp)
-
-
Method Details
-
invoke
Description copied from interface:ReallocFuncResize a previously allocated blockptrofold_sizebytes to benew_sizebytes. The block may be moved if necessary or if desired, and in that case the smaller ofold_sizeandnew_sizebytes must be copied to the new location. The return value is a pointer to the resized block, that being the new location if moved or just ptr if not.ptris never NULL, it’s always a previously allocated block.new_sizemay be bigger or smaller thanold_size.- Specified by:
invokein interfaceReallocFunc
-