# BlobString

> An immutable, variable-length string stored in a blob asset.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
public struct BlobString
```

## Remarks

Additional Resources: [BlobBuilder](/engine/7000.0/script-reference/unity/entities/blobbuilder.md)

## Properties

| Property                                                                      | Description                              |
| ----------------------------------------------------------------------------- | ---------------------------------------- |
| [Length](/engine/7000.0/script-reference/unity/entities/blobstring/length.md) | The length of the string in UTF-8 bytes. |

## Methods

| Method                                                                            | Description                                                                                     |
| --------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| [AsSpan](/engine/7000.0/script-reference/unity/entities/blobstring/asspan.md)     | Returns a ReadOnlySpan\_1 view of the UTF-8 encoded string data, excluding the null terminator. |
| [CopyTo](/engine/7000.0/script-reference/unity/entities/blobstring/copyto.md)     | Copies the characters from a BlobString to a native container                                   |
| [ToString](/engine/7000.0/script-reference/unity/entities/blobstring/tostring.md) | Converts this BlobString to a standard C# string.                                               |
