# ToBytesNBC(ref UnsafeAppendBuffer)

> Returns an unmanaged byte array with a copy of this buffer's contents.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections.LowLevel.Unsafe.NotBurstCompatible](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/notburstcompatible.md)
* **Assembly:** UnityEngine.ManagedKernelModule

## ToBytesNBC(UnsafeAppendBuffer)

```csharp
[ExcludeFromBurstCompatTesting("Returns managed array")]
public static byte[] ToBytesNBC(this ref UnsafeAppendBuffer buffer)
```

### Parameters

**** (\[UnsafeAppendBuffer]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeappendbuffer)): This buffer.

### Returns

| Type                                                           | Description                                                    |
| -------------------------------------------------------------- | -------------------------------------------------------------- |
| [byte\[\]](https://learn.microsoft.com/dotnet/api/system.byte) | An unmanaged byte array with a copy of this buffer's contents. |
