CFHashHeader: CFBase.h

Obtains a code that can be used to identify an object in a hashing structure.

CFHashCode CFHash (
    CFTypeRef cf
);
cf

A generic reference of type CFTypeRef. Pass a reference to any Core Foundation object whose hashing value you want to obtain.

function result

An integer of type CFHashCode that represents a hashing value for the object.

DISCUSSION

Two objects that are equal (as determined by the CFEqual function) have the same hashing value. However, the converse is not true: two objects with the same hashing value might not be equal. That is, hashing values are not unique.

The hashing value for an object might change from release to release or from platform to platform.


© 1999 Apple Computer, Inc. — (Last Updated 9/15/99)