Lines Matching refs:key
69 if ((uintptr_t)e1->key.get() == (uintptr_t)e2->key.get()) { in compare()
73 return (uintptr_t)e1->key.get() > (uintptr_t)e2->key.get() ? 1 : -1; in compare()
170 OSSharedPtr<const OSSymbol> key = OSSymbol::withString(*keys++); in initWithObjects() local
173 if (!key) { in initWithObjects()
177 if (!newObject || !setObject(key.get(), newObject)) { in initWithObjects()
211 dictionary[i].key = dict->dictionary[i].key; in initWithDictionary()
351 dictionary[i].key.reset(); in flushCollection()
372 exists = (i < count) && (aKey == dictionary[i].key); in setObject()
375 if ((exists = (aKey == dictionary[i].key))) { in setObject()
404 dictionary[i].key.reset(aKey, OSRetain); in setObject()
450 exists = (i < count) && (aKey == dictionary[i].key); in removeObject()
453 if ((exists = (aKey == dictionary[i].key))) { in removeObject()
467 oldEntry.key->taggedRelease(OSTypeID(OSCollection)); in removeObject()
521 if (aKey == dictionary[i].key) { in getObject()
525 if ((uintptr_t)aKey < (uintptr_t)dictionary[i].key.get()) { in getObject()
533 if (aKey == dictionary[i].key) { in getObject()
646 obj = srcDict->getObject(dictionary[i].key.get()); in isEqualTo()
694 *ret = const_cast<OSSymbol*>(dictionary[index].key.get()); in getNextObjectForIterator()
714 const OSSymbol *key = dictionary[i].key.get(); in serialize() local
717 if (!key->metaCast("OSSymbol")) { in serialize()
723 const char *c = key->getCStringNoCopy(); in serialize()
838 if (!array->setObject(i, dictionary[i].key.get())) { in copyKeys()
846 OSDictionary::iterateObjects(void * refcon, bool (*callback)(void * refcon, const OSSymbol * key, O… in iterateObjects() argument
854 done = callback(refcon, dictionary[i].key.get(), EXT_CAST(dictionary[i].value.get())); in iterateObjects()
867 OSDictionaryIterateObjectsBlock(void * refcon, const OSSymbol * key, OSObject * object) in OSDictionaryIterateObjectsBlock() argument
869 bool (^block)(const OSSymbol * key, OSObject * object) = (typeof(block))refcon; in OSDictionaryIterateObjectsBlock()
870 return block(key, object); in OSDictionaryIterateObjectsBlock()
874 OSDictionary::iterateObjects(bool (^block)(const OSSymbol * key, OSObject * object))