RecyclableMemoryStream.Write method (1 of 2)

October 6, 2021 · View on GitHub

Writes the buffer to the stream.

public override void Write(ReadOnlySpan<byte> source)
parameterdescription
sourceSource buffer.

Exceptions

exceptioncondition
ArgumentNullExceptionbuffer is null.
ObjectDisposedExceptionObject has been disposed.

See Also


RecyclableMemoryStream.Write method (2 of 2)

Writes the buffer to the stream.

public override void Write(byte[] buffer, int offset, int count)
parameterdescription
bufferSource buffer.
offsetStart position.
countNumber of bytes to write.

Exceptions

exceptioncondition
ArgumentNullExceptionbuffer is null.
ArgumentOutOfRangeExceptionoffset or count is negative.
ArgumentExceptionbuffer.Length - offset is not less than count.
ObjectDisposedExceptionObject has been disposed.

See Also