Write the provided input stream to the destination stream in chunks of writeBufferSize. Throws exception if any write takes longer than timeoutPerByteWriteMS.
Namespace: NetworkCommsDotNet.ToolsAssembly: NetworkCommsDotNet (in NetworkCommsDotNet.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax
Parameters
- inputStream
- Type: System.IO Stream
Input stream containing data to send
- inputStart
- Type: System Int64
The start position in inputStream
- inputLength
- Type: System Int64
The number of bytes to write
- destinationStream
- Type: System.IO Stream
The destination stream
- writeBufferSize
- Type: System Int32
The size in bytes of each successive write, recommended 8K
- timeoutMSPerKBWrite
- Type: System Double
The maximum time to allow for write to complete per KB
- minTimeoutMS
- Type: System Int32
The minimum time to wait per write, this takes priority over other values.
Return Value
Type: DoubleThe average time in milliseconds per KB written
See Also