Package org.robovm.apple.corefoundation
Class CFAllocator
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.apple.corefoundation.CFType
-
- org.robovm.apple.corefoundation.CFAllocator
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class CFAllocator extends CFType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CFAllocator.CFAllocatorPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.AsListMarshaler, CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CFAllocator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.robovm.rt.bro.ptr.VoidPtr
allocate(long size, long hint)
CFAllocator
create(CFAllocatorContext context)
void
deallocate(org.robovm.rt.bro.ptr.VoidPtr ptr)
static long
getClassTypeID()
CFAllocatorContext
getContext()
static CFAllocator
getDefault()
static CFAllocator
getDefaultAllocator()
static CFAllocator
getMallocAllocator()
static CFAllocator
getMallocZoneAllocator()
static CFAllocator
getNullAllocator()
long
getPreferredSizeForSize(long size, long hint)
static CFAllocator
getSystemDefaultAllocator()
static CFAllocator
getUseContextAllocator()
org.robovm.rt.bro.ptr.VoidPtr
reallocate(org.robovm.rt.bro.ptr.VoidPtr ptr, long newsize, long hint)
static void
setDefault(CFAllocator allocator)
-
Methods inherited from class org.robovm.apple.corefoundation.CFType
autorelease, close, dispose, dispose, doDispose, equalsTo, finalize, getAllocator, getDescription, getRetainCount, getTypeID, getTypeIDDescription, hash, makeCollectable, release, release, retain, retain, show, toString
-
-
-
-
Method Detail
-
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 org.robovm.rt.bro.ptr.VoidPtr allocate(long size, long hint)
-
reallocate
public org.robovm.rt.bro.ptr.VoidPtr reallocate(org.robovm.rt.bro.ptr.VoidPtr ptr, long newsize, long hint)
-
deallocate
public void deallocate(org.robovm.rt.bro.ptr.VoidPtr ptr)
-
getPreferredSizeForSize
public long getPreferredSizeForSize(long size, long hint)
-
-