Interface Allocator

  • All Known Implementing Classes:

    public interface Allocator
    A source of allocations.
    • Method Detail

      • release

        void release​(Allocation allocation)
        Releases an Allocation back to the allocator.
        allocation - The Allocation being released.
      • trim

        void trim()
        Hints to the allocator that it should make a best effort to release any excess Allocations.
      • getTotalBytesAllocated

        int getTotalBytesAllocated()
        Returns the total number of bytes currently allocated.
      • getIndividualAllocationLength

        int getIndividualAllocationLength()
        Returns the length of each individual Allocation.