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