Class PlatformMemoryPool


  • public class PlatformMemoryPool
    extends Object
    Memory pool associated with a thread.
    • Constructor Detail

      • PlatformMemoryPool

        public PlatformMemoryPool()
        Constructor.
    • Method Detail

      • allocate

        public PlatformMemory allocate​(int cap)
        Allocate memory chunk, optionally pooling it.
        Parameters:
        cap - Minimum capacity.
        Returns:
        Memory chunk.
      • get

        public PlatformMemory get​(long memPtr)
        Get pooled memory chunk.
        Parameters:
        memPtr - Memory pointer.
        Returns:
        Memory chunk.