Table of Contents

Method Write

Namespace
Alternet.Scripter.IronPython
Assembly
Alternet.Scripter.IronPython.v9.dll

Write(byte[], int, int)

Writes a block of bytes to the current stream using data read from a buffer.

public override void Write(byte[] buffer, int offset, int count)

Parameters

buffer byte[]

The buffer to write data from.

offset int

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

count int

The maximum number of bytes to write.

Exceptions

ArgumentNullException

buffer is null.

NotSupportedException

The stream does not support writing. For additional information see CanWrite.-or- The current position is closer than count bytes to the end of the stream, and the capacity cannot be modified.

ArgumentException

offset subtracted from the buffer length is less than count.

ArgumentOutOfRangeException

offset or count are negative.

IOException

An I/O error occurs.

ObjectDisposedException

The current stream instance is closed.