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

# xpc_uuid_get_bytes(_:)

Copies the UUID that an XPC UUID object boxes into the specified UUID buffer.

## Declaration

```swift
func xpc_uuid_get_bytes(_ xuuid: xpc_object_t) -> UnsafePointer<UInt8>?
```

## Parameters

- `xuuid`: The UUID object which is to be examined.

## Return Value

Return Value The underlying uuid_t bytes. The returned pointer may be safely passed to the uuid(3) APIs.

## See Also

### UUID objects

- [xpc_uuid_create(_:)](xpc/xpc_uuid_create(_:).md)
