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)
parameterdescription
bufferAn ArraySegment containing a reference to the underlying bytes.

Return Value

Returns true if a buffer can be returned; otherwise, false.

See Also