Copies data specified by start and length properties from internal stream to the provided stream.
Namespace: NetworkCommsDotNet.ToolsAssembly: NetworkCommsDotNet (in NetworkCommsDotNet.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax
Parameters
- destinationStream
- Type: System.IO Stream
The destination stream to write to
- startPosition
- Type: System Int64
[Missing <param name="startPosition"/> documentation for "M:NetworkCommsDotNet.Tools.StreamTools.ThreadSafeStream.CopyTo(System.IO.Stream,System.Int64,System.Int64,System.Int32,System.Double,System.Int32)"]
- length
- Type: System Int64
[Missing <param name="length"/> documentation for "M:NetworkCommsDotNet.Tools.StreamTools.ThreadSafeStream.CopyTo(System.IO.Stream,System.Int64,System.Int64,System.Int32,System.Double,System.Int32)"]
- writeBufferSize
- Type: System Int32
The buffer size to use for copying stream contents
- timeoutMSPerKBWrite (Optional)
- Type: System Double
The timouts in milliseconds per KB to write
- minTimeoutMS (Optional)
- Type: System Int32
The minimum time allowed for any sized copy
Return Value
Type: DoubleThe average time in milliseconds per byte written
See Also