withCapacity
Allocates an OSDictionary object with preallocated capacity.
Declaration
static OSDictionaryPtr withCapacity(uint32_t capacity);Parameters
- capacity:
Count of allocated capacity for members in dictionary.
Return Value
NULL on failure, otherwise the allocated OSDictionary with reference count 1 to be released by the caller.