---
title: "CFDataGetBytePtr(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfdatagetbyteptr(_:)"
---

# CFDataGetBytePtr(_:)

Returns a read-only pointer to the bytes of a CFData object.

## Declaration

```swift
func CFDataGetBytePtr(_ theData: CFData!) -> UnsafePointer<UInt8>!
```

## Parameters

- `theData`: The CFData object to examine.

## Return Value

Return Value A read-only pointer to the bytes associated with theData.

## Discussion

Discussion This function is guaranteed to return a pointer to a CFData object’s internal bytes. CFData, unlike CFString, does not hide its internal storage.

## See Also

### Examining a CFData Object

- [CFDataGetBytes(_:_:_:)](corefoundation/cfdatagetbytes(_:_:_:).md)
- [CFDataGetLength(_:)](corefoundation/cfdatagetlength(_:).md)
- [CFDataFind(_:_:_:_:)](corefoundation/cfdatafind(_:_:_:_:).md)
