# ConnectionFrameHelper.ReadLengthPrefixedString(byte[], int)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.messaging.connectionframehelper/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.messaging.connectionframehelper/methods/)

[Source](https://github.com/dotnet/orleans/blob/c9649c32492ebefacecd89d6fdef918adede6cdf/src/Orleans.Core/Networking/ConnectionFrameHelper.cs#L173-L188)

```csharp
public static string ReadLengthPrefixedString(byte[] data, ref int offset)
```

Reads a length-prefixed UTF-8 string from a payload byte array.

### Parameters

- `data` (`byte[]`)
- `offset` (`int`)
