RecyclableMemoryStream.Read method (1 of 2)
October 6, 2021 · View on GitHub
Reads from the current position into the provided buffer.
public override int Read(Span<byte> buffer)
| parameter | description |
|---|---|
| buffer | Destination buffer. |
Return Value
The number of bytes read.
Exceptions
| exception | condition |
|---|---|
| ObjectDisposedException | Object has been disposed. |
See Also
- class RecyclableMemoryStream
- namespace Microsoft.IO
RecyclableMemoryStream.Read method (2 of 2)
Reads from the current position into the provided buffer.
public override int Read(byte[] buffer, int offset, int count)
| parameter | description |
|---|---|
| buffer | Destination buffer. |
| offset | Offset into buffer at which to start placing the read bytes. |
| count | Number of bytes to read. |
Return Value
The number of bytes read.
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | buffer is null. |
| ArgumentOutOfRangeException | offset or count is less than 0. |
| ArgumentException | offset subtracted from the buffer length is less than count. |
| ObjectDisposedException | Object has been disposed. |
See Also
- class RecyclableMemoryStream
- namespace Microsoft.IO