CopyTo(Writer<TBufferWriter>)
public void CopyTo<TBufferWriter>(ref Writer<TBufferWriter> writer)Copies the contents of this writer to another writer.
Parameters
writerWriter<TBufferWriter>
System.Buffers.IBufferWriter implementation which boxes another buffer writer. public void CopyTo<TBufferWriter>(ref Writer<TBufferWriter> writer)writerWriter<TBufferWriter>public override void Flush()System.IO.IOExceptionpublic override int Read(byte[] buffer, int offset, int count)bufferbyte[]offset and (offset + count - 1) replaced by the bytes read from the current source.offsetintbuffer at which to begin storing the data read from the current stream.countintcount is 0 or the end of the stream has been reached.System.ArgumentExceptionoffset and count is larger than the buffer length.System.ArgumentNullExceptionbuffer is null.System.ArgumentOutOfRangeExceptionoffset or count is negative.System.IO.IOExceptionSystem.NotSupportedExceptionSystem.ObjectDisposedExceptionpublic static PooledBufferStream Rent()public ReadOnlySequence<byte> RentReadOnlySequence()System.Buffers.ReadOnlySequence which must be used and returned before resetting this instance via the PooledBufferStream method. public void Reset()public static void Return(PooledBufferStream stream)streamPooledBufferStreampublic void ReturnReadOnlySequence(in ReadOnlySequence<byte> sequence)System.Buffers.ReadOnlySequence previously rented by PooledBufferStream; sequenceReadOnlySequence<byte>public override long Seek(long offset, SeekOrigin origin)offsetlongorigin parameter.originSeekOriginSystem.IO.SeekOrigin indicating the reference point used to obtain the new position.System.IO.IOExceptionSystem.NotSupportedExceptionSystem.ObjectDisposedExceptionpublic override void SetLength(long value)valuelongSystem.IO.IOExceptionSystem.NotSupportedExceptionSystem.ObjectDisposedExceptionpublic byte[] ToArray()public override void Write(byte[] buffer, int offset, int count)bufferbyte[]count bytes from buffer to the current stream.offsetintbuffer at which to begin copying bytes to the current stream.countintSystem.ArgumentExceptionoffset and count is greater than the buffer length.System.ArgumentNullExceptionbuffer is null.System.ArgumentOutOfRangeExceptionoffset or count is negative.System.IO.IOExceptionSystem.NotSupportedExceptionSystem.ObjectDisposedExceptionSystem.IO.Stream.Write was called after the stream was closed.