Module com.io7m.jcoronado.api
Package com.io7m.jcoronado.api
Interface VulkanHostAllocatorCallbacksType.ReallocationFunctionType
-
- All Known Subinterfaces:
VulkanHostAllocatorType
- All Known Implementing Classes:
VulkanHostAllocatorTracker
,VulkanLWJGLHostAllocatorJeMalloc
- Enclosing interface:
- VulkanHostAllocatorCallbacksType
public static interface VulkanHostAllocatorCallbacksType.ReallocationFunctionType
A function to reallocate memory.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
reallocate(long original, long size, long alignment, VulkanSystemAllocationScope scope)
Reallocatesize
octets of memory, aligned toalignment
, of scopescope
.
-
-
-
Method Detail
-
reallocate
long reallocate(long original, long size, long alignment, VulkanSystemAllocationScope scope)
Reallocatesize
octets of memory, aligned toalignment
, of scopescope
. The function must return the address of the allocated memory as an integer, or0
if the allocation has failed. The function MUST NOT raise exceptions under any circumstances.- Parameters:
original
- The original memory addresssize
- The size of the allocationalignment
- The alignment of the allocationscope
- The scope of the allocation- Returns:
- The memory address
-
-