ISliceBufferWriter
Namespace: SnowBank.Buffers · interface
Implements: IBufferWriter<byte>
IBufferWriter that can also allocate Slice chunks
Methods
GetSlice
ArraySegment<byte> GetSlice(int sizeHint = 0)
Returns a Span to write to that is at least the requested size (specified by sizeHint).
sizeHint— The minimum length of the returned Slice. If 0, a non-empty buffer is returned.
Returns: A Span of at least the size sizeHint. If sizeHint is 0, returns a non-empty buffer.