---
title: "xpc_data_get_bytes_ptr(_:)"
framework: xpc
role: symbol
role_heading: Function
path: "xpc/xpc_data_get_bytes_ptr(_:)"
---

# xpc_data_get_bytes_ptr(_:)

Returns a pointer to the internal storage of a data object.

## Declaration

```swift
func xpc_data_get_bytes_ptr(_ xdata: xpc_object_t) -> UnsafeRawPointer?
```

## Parameters

- `xdata`: The data object which is to be examined.

## Return Value

Return Value A pointer to the underlying boxed data.

## See Also

### Data objects

- [xpc_data_create(_:_:)](xpc/xpc_data_create(_:_:).md)
- [xpc_data_create_with_dispatch_data(_:)](xpc/xpc_data_create_with_dispatch_data(_:).md)
- [xpc_data_get_bytes(_:_:_:_:)](xpc/xpc_data_get_bytes(_:_:_:_:).md)
- [xpc_data_get_length(_:)](xpc/xpc_data_get_length(_:).md)
