# TestMultiSegmentBufferWriter.GetSpan(int)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization.testkit/orleans.serialization.testkit.testmultisegmentbufferwriter/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.serialization.testkit/orleans.serialization.testkit.testmultisegmentbufferwriter/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization.TestKit/TestMultiSegmentBufferWriter.cs#L53-L66)

```csharp
public Span<byte> GetSpan(int sizeHint)
```

Returns a `System.Span-1` to write to that is at least the requested size (specified by `sizeHint`).

### Parameters

- `sizeHint` (`int`): The minimum length of the returned `System.Span-1`. If 0, a non-empty buffer is returned.

### Returns

A `System.Span-1` of at least the size `sizeHint`. If `sizeHint` is 0, returns a non-empty buffer.
