Class CFAllocator

All Implemented Interfaces:
AutoCloseable

public class CFAllocator
extends CFType
  • Constructor Details

    • CFAllocator

      protected CFAllocator()
  • Method Details

    • getContext

      public CFAllocatorContext getContext()
    • getDefaultAllocator

      public static CFAllocator getDefaultAllocator()
    • getSystemDefaultAllocator

      public static CFAllocator getSystemDefaultAllocator()
    • getMallocAllocator

      public static CFAllocator getMallocAllocator()
    • getMallocZoneAllocator

      public static CFAllocator getMallocZoneAllocator()
    • getNullAllocator

      public static CFAllocator getNullAllocator()
    • getUseContextAllocator

      public static CFAllocator getUseContextAllocator()
    • getClassTypeID

      public static long getClassTypeID()
    • setDefault

      public static void setDefault​(CFAllocator allocator)
    • getDefault

      public static CFAllocator getDefault()
    • create

      public CFAllocator create​(CFAllocatorContext context)
    • allocate

      public VoidPtr allocate​(long size, long hint)
    • reallocate

      public VoidPtr reallocate​(VoidPtr ptr, long newsize, long hint)
    • deallocate

      public void deallocate​(VoidPtr ptr)
    • getPreferredSizeForSize

      public long getPreferredSizeForSize​(long size, long hint)