withArray
Allocates an OSArray object with given members and preallocated capacity.
Declaration
static OSArrayPtr withArray(const OSArray *array, uint32_t capacity);Parameters
- array:
Array object containing members for the new array.
- 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.