---
title: "CFBagGetValues(_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfbaggetvalues(_:_:)"
---

# CFBagGetValues(_:_:)

Fills a buffer with values from a bag.

## Declaration

```swift
func CFBagGetValues(_ theBag: CFBag!, _ values: UnsafeMutablePointer<UnsafeRawPointer?>!)
```

## Parameters

- `theBag`: The bag to examine.
- `values`: A C array of pointer-sized values to be filled with values from theBag. The value must be a valid C array of the appropriate type and size (that is, a size equal to the count of theBag).

## See Also

### Examining a Bag

- [CFBagContainsValue(_:_:)](corefoundation/cfbagcontainsvalue(_:_:).md)
- [CFBagGetCount(_:)](corefoundation/cfbaggetcount(_:).md)
- [CFBagGetCountOfValue(_:_:)](corefoundation/cfbaggetcountofvalue(_:_:).md)
- [CFBagGetValue(_:_:)](corefoundation/cfbaggetvalue(_:_:).md)
- [CFBagGetValueIfPresent(_:_:_:)](corefoundation/cfbaggetvalueifpresent(_:_:_:).md)
