# AppendRawByte<T>(ref T, byte)

> Appends a byte to this string.

## Definition

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

## AppendRawByte\<T>(T, byte)

```csharp
public static FormatError AppendRawByte<T>(this ref T fs, byte a) where T : unmanaged, INativeList<byte>, IUTF8Bytes
```

### Parameters

**** (T): A FixedString"N"Bytes.**** (\[byte]\(https\://learn.microsoft.com/dotnet/api/system.byte)): A byte to append.

### Returns

| Type                                                                            | Description                                                                                             |
| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
| [FormatError](/engine/6000.7/script-reference/unity/collections/formaterror.md) | FormatError.None if successful. Returns FormatError.Overflow if the capacity of the string is exceeded. |

### Remarks

No validation is performed: it is your responsibility for the data to be valid UTF-8 when you're done appending bytes.
