# GetUnsafePtr()

> Returns a pointer to the character bytes.

## Definition

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

```csharp
public readonly byte* GetUnsafePtr()
```

### Returns

| Type                                                         | Description                       |
| ------------------------------------------------------------ | --------------------------------- |
| [byte\*](https://learn.microsoft.com/dotnet/api/system.byte) | A pointer to the character bytes. |

### Remarks

The pointer returned by this method points into the internals of the target FixedString object. It is the caller's responsibility to ensure that the pointer is not used after the FixedString object is destroyed or goes out of scope.
