Package it.unich.jgmp.nativelib
Interface ReallocFunc
-
- All Superinterfaces:
com.sun.jna.Callback
- All Known Implementing Classes:
AllocationMonitor.JGMPRealloc
public interface ReallocFunc extends com.sun.jna.CallbackCustom reallocator function callback.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.sun.jna.Pointerinvoke(com.sun.jna.Pointer ptr, SizeT old_size, SizeT new_size)Resize a previously allocated blockptrofold_sizebytes to benew_sizebytes.
-
-
-
Method Detail
-
invoke
com.sun.jna.Pointer invoke(com.sun.jna.Pointer ptr, SizeT old_size, SizeT new_size)Resize 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.
-
-