# ConnectionFrameHelper.WriteLengthPrefixedString(IBufferWriter&lt;byte&gt;, string)

[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#L154-L166)

```csharp
public static void WriteLengthPrefixedString(IBufferWriter<byte> writer, string value)
```

Writes a length-prefixed UTF-8 string (4-byte LE length + bytes) into a buffer.

### Parameters

- `writer` (`IBufferWriter<byte>`)
- `value` (`string`)
