Contents

NSAllocateMemoryPages(_:)

Allocates a new block of memory.

Declaration

func NSAllocateMemoryPages(_ bytes: Int) -> UnsafeMutableRawPointer

Discussion

Allocates the integral number of pages whose total size is closest to, but not less than, byteCount. The allocated pages are guaranteed to be filled with zeros. If the allocation fails, raises NSInvalidArgumentException.

See Also

Memory Management