Returns the number of values currently in a bag.
SDKs
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Foundation
Returns the number of values currently in a bag.
SDKs
Framework
func CFBag Contains Value(CFBag!, Unsafe Raw Pointer!) -> Bool
Reports whether or not a value is in a bag.
func CFBag Get Count Of Value(CFBag!, Unsafe Raw Pointer!) -> CFIndex
Returns the number of times a value occurs in a bag.
func CFBag Get Value(CFBag!, Unsafe Raw Pointer!) -> Unsafe Raw Pointer!
Returns a requested value from a bag.
func CFBag Get Value If Present(CFBag!, Unsafe Raw Pointer!, Unsafe Mutable Pointer<Unsafe Raw Pointer?>!) -> Bool
Reports whether or not a value is in a bag, and returns that value indirectly if it exists.
func CFBag Get Values(CFBag!, Unsafe Mutable Pointer<Unsafe Raw Pointer?>!)
Fills a buffer with values from a bag.