Class NSZone

java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.apple.foundation.NSZone

public class NSZone
extends NativeObject
  • Constructor Details

    • NSZone

      protected NSZone()
  • Method Details

    • getDefaultMallocZone

      public static NSZone getDefaultMallocZone()
    • create

      public static NSZone create​(long startSize, long granularity, boolean canFree)
    • recycle

      public void recycle()
    • setName

      public void setName​(String name)
    • getName

      public String getName()
    • fromPointer

      public static NSZone fromPointer​(VoidPtr ptr)
    • malloc

      public VoidPtr malloc​(long size)
    • calloc

      public VoidPtr calloc​(long numElems, long byteSize)
    • realloc

      public VoidPtr realloc​(VoidPtr ptr, long size)
    • free

      public void free​(VoidPtr ptr)
    • 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

      public static VoidPtr allocateMemoryPages​(long bytes)
    • deallocateMemoryPages

      public static void deallocateMemoryPages​(VoidPtr ptr, long bytes)
    • copyMemoryPages

      public static void copyMemoryPages​(VoidPtr source, VoidPtr dest, long bytes)