public Write ( object clientData, byte buffer, int offset, int count ) : void | ||
clientData | object | A client data (by default, an underlying stream). |
buffer | byte | An array of bytes. This method copies |
offset | int | The zero-based byte offset in |
count | int | The number of bytes to be written to the current stream. |
Résultat | void |
public virtual void Write(object clientData, byte[] buffer, int offset, int count)
{
Stream stream = clientData as Stream;
if (stream == null)
throw new ArgumentException("Can't get underlying stream to write to");
stream.Write(buffer, offset, count);
}