# ReadFixedString512()

> Reads a FixedString512Bytes value from the current stream and advances the current position of the stream by the length of the string.

## Definition

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

```csharp
public FixedString512Bytes ReadFixedString512()
```

### Returns

| Type                                                                                            | Description                                                                                                 |
| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| [FixedString512Bytes](/engine/6000.7/script-reference/unity/collections/fixedstring512bytes.md) | A `FixedString512Bytes` value read from the current stream, or 0 if the end of the stream has been reached. |
