Contents

withCapacity

Allocates an OSArray object with preallocated capacity.

Declaration

static OSArrayPtr withCapacity(uint32_t capacity);

Parameters

  • capacity:

    Count of allocated capacity for members in array.

Return Value

NULL on failure, otherwise the allocated OSArray with reference count 1 to be released by the caller.

See Also

Creating an Array