Interface PlatformMemoryManager

  • All Known Implementing Classes:
    PlatformMemoryManagerImpl

    public interface PlatformMemoryManager
    Interop memory manager interface.
    • 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.