Table of Contents

Method GetSpan

Namespace
NATS.Client.Core
Assembly
NATS.Client.Core.dll

GetSpan(int)

Returns a Span<T> to write to that is at least the requested size (specified by sizeHint).

public Span<T> GetSpan(int sizeHint = 0)

Parameters

sizeHint int

The minimum length of the returned Span<T>. If 0, a non-empty buffer is returned.

Returns

Span<T>

A Span<T> of at least the size sizeHint. If sizeHint is 0, returns a non-empty buffer.