# Extensions

> Provides some extension methods for various collections.

## Definition

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

```csharp
public static class Extensions
```

## Static Methods

| Method                                                                                                                        | Description                                                            |
| ----------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| [AddNBC](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/notburstcompatible/extensions/addnbc.md)           | Adds the content of a string to this append buffer.                    |
| [ReadNextNBC](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/notburstcompatible/extensions/readnextnbc.md) | Reads a string from this buffer reader.                                |
| [ToArray](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/notburstcompatible/extensions/toarray.md)         | Returns a new managed array with all the elements copied from a set.   |
| [ToBytesNBC](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/notburstcompatible/extensions/tobytesnbc.md)   | Returns an unmanaged byte array with a copy of this buffer's contents. |
