---
title: "CFUUIDCreateFromUUIDBytes(_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfuuidcreatefromuuidbytes(_:_:)"
---

# CFUUIDCreateFromUUIDBytes(_:_:)

Creates a CFUUID object from raw UUID bytes.

## Declaration

```swift
func CFUUIDCreateFromUUIDBytes(_ alloc: CFAllocator!, _ bytes: CFUUIDBytes) -> CFUUID!
```

## Parameters

- `alloc`: The allocator to use to allocate memory for the new CFUUID object. Pass NULL or doc://com.apple.corefoundation/documentation/CoreFoundation/kCFAllocatorDefault to use the current default allocator.
- `bytes`: Raw UUID bytes to use to create the CFUUID object.

## Return Value

Return Value A new CFUUID object. Ownership follows the The Create Rule.

## See Also

### Creating CFUUID Objects

- [CFUUIDCreate(_:)](corefoundation/cfuuidcreate(_:).md)
- [CFUUIDCreateFromString(_:_:)](corefoundation/cfuuidcreatefromstring(_:_:).md)
- [CFUUIDCreateWithBytes(_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:)](corefoundation/cfuuidcreatewithbytes(_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:).md)
