Interface MemoryAllocator<T extends Memory>

All Known Implementing Classes:
MappedMemoryAllocator

public interface MemoryAllocator<T extends Memory>
Memory allocator.

Memory allocators handle allocation of memory for Memory objects.

Author:
Jordan Halterman
  • Method Summary

    Modifier and Type
    Method
    Description
    allocate(int size)
    Allocates memory.
  • Method Details

    • allocate

      T allocate(int size)
      Allocates memory.
      Parameters:
      size - The count of the memory to allocate.
      Returns:
      The allocated memory.