Package org.robovm.apple.foundation
Class NSZone
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.apple.foundation.NSZone
public class NSZone extends NativeObject
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNSZone.NSZonePtrNested classes/interfaces inherited from class org.robovm.rt.bro.NativeObject
NativeObject.Marshaler -
Constructor Summary
Constructors Modifier Constructor Description protectedNSZone() -
Method Summary
Modifier and Type Method Description static VoidPtrallocateMemoryPages(long bytes)VoidPtrcalloc(long numElems, long byteSize)static voidcopyMemoryPages(VoidPtr source, VoidPtr dest, long bytes)static NSZonecreate(long startSize, long granularity, boolean canFree)static voiddeallocateMemoryPages(VoidPtr ptr, long bytes)voidfree(VoidPtr ptr)static NSZonefromPointer(VoidPtr ptr)static NSZonegetDefaultMallocZone()static longgetLogPageSize()StringgetName()static longgetPageSize()VoidPtrmalloc(long size)VoidPtrrealloc(VoidPtr ptr, long size)voidrecycle()static longroundDownToMultipleOfPageSize(long bytes)static longroundUpToMultipleOfPageSize(long bytes)voidsetName(String name)
-
Constructor Details
-
NSZone
protected NSZone()
-
-
Method Details
-
getDefaultMallocZone
-
create
-
recycle
public void recycle() -
setName
-
getName
-
fromPointer
-
malloc
-
calloc
-
realloc
-
free
-
getPageSize
public static long getPageSize() -
getLogPageSize
public static long getLogPageSize() -
roundUpToMultipleOfPageSize
public static long roundUpToMultipleOfPageSize(long bytes) -
roundDownToMultipleOfPageSize
public static long roundDownToMultipleOfPageSize(long bytes) -
allocateMemoryPages
-
deallocateMemoryPages
-
copyMemoryPages
-