Use unshifted value as hash and equality.
SDKs
- iOS 6.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
NSPointerFunctionsIntegerPersonality = (5UL << 8)
Use unshifted value as hash and equality.
SDKs
Framework
NSPointerFunctionsIntegerPersonality = (5UL << 8)
NSPointer Functions CString Personality
Use a string hash and strcmp
; C-string '%s
' style description.
NSPointer Functions Object Personality
Use hash
and is
methods for hashing and equality comparisons, use the description
method for a description.
NSPointer Functions Object Pointer Personality
Use shifted pointer for the hash value and direct comparison to determine equality; use the description
method for a description.
NSPointer Functions Opaque Personality
Use shifted pointer for the hash value and direct comparison to determine equality.
NSPointer Functions Struct Personality
Use a memory hash and memcmp
(using a size function that you must set—see size
).