Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar Namespace / FileSystemTools Class / StreamContentPump Method / StreamContentPump(Stream,Stream,Int64) Method
The Stream to read from, starting at its current Position.
The Stream to write into, starting at its current Position.
The maximum count of bytes to copy. Non-positive count will copy nothing.

StreamContentPump(Stream,Stream,Int64) Method
Pump the contents of one stream from its current Position into another stream at its current Position up to a maximum byte count.
Syntax
'Declaration
 
Public Overloads Shared Function StreamContentPump( _
   ByVal sourceStream As Stream, _
   ByVal destinationStream As Stream, _
   ByVal maxCount As Long _
) As Long
 

Parameters

sourceStream
The Stream to read from, starting at its current Position.
destinationStream
The Stream to write into, starting at its current Position.
maxCount
The maximum count of bytes to copy. Non-positive count will copy nothing.

Return Value

The total number of bytes copied.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also