# AddNBC(ref UnsafeAppendBuffer, string)

> Adds the content of a string to this append buffer.

## Definition

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

## AddNBC(UnsafeAppendBuffer, string)

```csharp
[ExcludeFromBurstCompatTesting("Takes managed string")]
public static void AddNBC(this ref UnsafeAppendBuffer buffer, string value)
```

### Parameters

**** (\[UnsafeAppendBuffer]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeappendbuffer)): The buffer to which to add the string.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The string to copy.

### Remarks

The length of the string is written as an int to the buffer before the characters are written.
