StreamTools Write Method ( Byte , Int32, Int32, Stream, Int32, Double, Int32)NetworkComms.Net Help
Write the provided sendbuffer to the destination stream in chunks of writeBufferSize. Throws exception if any write takes longer than timeoutPerByteWriteMS.

Namespace: NetworkCommsDotNet.Tools
Assembly: NetworkCommsDotNet (in NetworkCommsDotNet.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax

public static double Write(
	byte[] sendBuffer,
	int inputStart,
	int bufferLength,
	Stream destinationStream,
	int writeBufferSize,
	double timeoutMSPerKBWrite,
	int minTimeoutMS
)

Parameters

sendBuffer
Type:  OnlineSystem Byte 
Buffer containing data to write
inputStart
Type: OnlineSystem Int32
The start position in sendBuffer
bufferLength
Type: OnlineSystem Int32
The number of bytes to write
destinationStream
Type: OnlineSystem.IO Stream
The destination stream
writeBufferSize
Type: OnlineSystem Int32
The size in bytes of each successive write
timeoutMSPerKBWrite
Type: OnlineSystem Double
The maximum time to allow for write to complete per KB
minTimeoutMS
Type: OnlineSystem Int32
The minimum time to allow for any sized write

Return Value

Type: OnlineDouble
The average time in milliseconds per KB written
See Also