Class MappedMemoryAllocator

    • Method Detail

      • reallocate

        public MappedMemory reallocate​(MappedMemory memory,
                                       int size)
        Description copied from interface: MemoryAllocator
        Reallocates the given memory.

        When the memory is reallocated, the memory address for the given Memory instance may change. The returned Memory instance will contain the updated address and count.

        Specified by:
        reallocate in interface MemoryAllocator<MappedMemory>
        Parameters:
        memory - The memory to reallocate.
        size - The count to which to reallocate the given memory.
        Returns:
        The reallocated memory.
      • close

        public void close()