Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.

API: engine
Project: Inno.Core.IO

public override void Inno.Core.IO.OwnedReadStream.Write(byte[] buffer, int offset, int count)

Parameter buffer: An array of bytes. This method copies count bytes from buffer to the current stream.

Parameter offset: The zero-based byte offset in buffer at which to begin copying bytes to the current stream.

Parameter count: The number of bytes to be written to the current stream.

Exception T:System.ArgumentException: The sum of offset and count is greater than the buffer length.

Exception T:System.ArgumentNullException: buffer is null.

Exception T:System.ArgumentOutOfRangeException: offset or count is negative.

Exception T:System.IO.IOException: An I/O error occurred, such as the specified file cannot be found.

Exception T:System.NotSupportedException: The stream does not support writing.

Exception T:System.ObjectDisposedException: M:System.IO.Stream.Write(System.Byte[],System.Int32,System.Int32) was called after the stream was closed.