RecyclableMemoryStream.TryGetBuffer method
October 6, 2021 · View on GitHub
Returns an ArraySegment that wraps a single buffer containing the contents of the stream.
public override bool TryGetBuffer(out ArraySegment<byte> buffer)
| parameter | description |
|---|---|
| buffer | An ArraySegment containing a reference to the underlying bytes. |
Return Value
Returns true if a buffer can be returned; otherwise, false.
See Also
- class RecyclableMemoryStream
- namespace Microsoft.IO