---
title: "getBytes(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsuuid/getbytes(_:)"
---

# getBytes(_:)

Returns the UUID as bytes.

## Declaration

```swift
func getBytes(_ uuid: UnsafeMutablePointer<UInt8>)
```

## Parameters

- `uuid`: The value of uuid represented as raw bytes.

## See Also

### Get UUID Values

- [uuidString](foundation/nsuuid/uuidstring.md)
