Write the provided sendbuffer 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
- sendBuffer
- Type: System Byte
Buffer containing data to write
- inputStart
- Type: System Int32
The start position in sendBuffer
- bufferLength
- Type: System Int32
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
- timeoutMSPerKBWrite
- Type: System Double
The maximum time to allow for write to complete per KB
- minTimeoutMS
- Type: System Int32
The minimum time to allow for any sized write
Return Value
Type: DoubleThe average time in milliseconds per KB written
See Also