RecyclableMemoryStream.GetSpan method
October 6, 2021 · View on GitHub
public Span<byte> GetSpan(int sizeHint = 0)
Remarks
IMPORTANT: Calling Write(), GetBuffer(), TryGetBuffer(), Seek(), GetLength(), Advance(), or setting Position after calling GetSpan() invalidates the span.
See Also
- class RecyclableMemoryStream
- namespace Microsoft.IO