---
title: "CFBitVectorGetBits(_:_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfbitvectorgetbits(_:_:_:)"
---

# CFBitVectorGetBits(_:_:_:)

Returns the bit values in a range of indices in a bit vector.

## Declaration

```swift
func CFBitVectorGetBits(_ bv: CFBitVector!, _ range: CFRange, _ bytes: UnsafeMutablePointer<UInt8>!)
```

## Parameters

- `bv`: The bit vector to examine.
- `range`: The range of bit values to return.
- `bytes`: On return, contains the requested bit values from bv. This argument must point to enough memory to hold the number of bits requested. The requested bits are left-aligned with the first requested bit stored in the left-most, or most-significant, bit of the byte stream.

## See Also

### Getting Information About a Bit Vector

- [CFBitVectorContainsBit(_:_:_:)](corefoundation/cfbitvectorcontainsbit(_:_:_:).md)
- [CFBitVectorGetBitAtIndex(_:_:)](corefoundation/cfbitvectorgetbitatindex(_:_:).md)
- [CFBitVectorGetCount(_:)](corefoundation/cfbitvectorgetcount(_:).md)
- [CFBitVectorGetCountOfBit(_:_:_:)](corefoundation/cfbitvectorgetcountofbit(_:_:_:).md)
- [CFBitVectorGetFirstIndexOfBit(_:_:_:)](corefoundation/cfbitvectorgetfirstindexofbit(_:_:_:).md)
- [CFBitVectorGetLastIndexOfBit(_:_:_:)](corefoundation/cfbitvectorgetlastindexofbit(_:_:_:).md)
