Interface PlatformMemoryManager
-
- All Known Implementing Classes:
PlatformMemoryManagerImpl
public interface PlatformMemoryManagerInterop memory manager interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PlatformMemoryallocate()Allocates memory.PlatformMemoryallocate(int cap)Allocates memory having at least the given capacity.PlatformMemoryget(long memPtr)Gets memory from existing pointer.
-
-
-
Method Detail
-
allocate
PlatformMemory allocate()
Allocates memory.- Returns:
- Memory.
-
allocate
PlatformMemory allocate(int cap)
Allocates memory having at least the given capacity.- Parameters:
cap- Minimum capacity.- Returns:
- Memory.
-
get
PlatformMemory get(long memPtr)
Gets memory from existing pointer.- Parameters:
memPtr- Cross-platform memory pointer.- Returns:
- Memory.
-
-