LumiSoft Net Help
StreamCopy Method (source, target, blockSize)
Namespaces ► LumiSoft.Net ► Net_Utils ► StreamCopy(Stream, Stream, Int32)
Copies source stream data to target stream.
Declaration Syntax

C# | Visual Basic | Visual C++ | F#

    public static long StreamCopy(
    	Stream source,
    	Stream target,
    	int blockSize
    )

    Public Shared Function StreamCopy (
    	source As Stream,
    	target As Stream,
    	blockSize As Integer
    ) As Long

    public:
    static long long StreamCopy(
    	Stream^ source,
    	Stream^ target,
    	int blockSize
    )

    static member StreamCopy :
            source : Stream *
            target : Stream *
            blockSize : int -> int64

Parameters

source (Stream)
  Source stream. Reading starts from stream current position.

target (Stream)
  Target stream. Writing starts from stream current position.

blockSize (Int32)
  Specifies transfer block size in bytes.

Return Value
Int64
Returns number of bytes copied.

Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119