# GetUTF8LiteralPointer(string, out int)

> Return a pointer to read-only memory consisting of the literal UTF-8 bytes of a string constant.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Burst](/engine/6000.7/script-reference/unity/burst.md)
* **Assembly:** UnityEngine.BurstModule

## GetUTF8LiteralPointer(string, int)

```csharp
public static byte* GetUTF8LiteralPointer(string str, out int byteCount)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): A string which must a string literal**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Receives the number of UTF-8 encoded bytes the constant contains (excluding null terminator)

### Returns

| Type                                                         | Description                                                                                                              |
| ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
| [byte\*](https://learn.microsoft.com/dotnet/api/system.byte) | A pointer to constant data representing the UTF-8 encoded bytes of the string literal, terminated with a null terminator |
