Calculates the checksum of the data in specified stream.

Namespace:  Rebex.Net
Assembly:  Rebex.Ftp (in Rebex.Ftp.dll)

Syntax

Visual Basic
Public Shared Function CalculateLocalChecksum ( _
	type As FtpChecksumType, _
	sourceStream As Stream, _
	length As Long _
) As String
C#
public static string CalculateLocalChecksum(
	FtpChecksumType type,
	Stream sourceStream,
	long length
)

Parameters

type
Type: Rebex.Net..::..FtpChecksumType
Desired checksum type.
sourceStream
Type: System.IO..::..Stream
The source data stream.
length
Type: System..::..Int64
The maximum number of bytes to read.

Return Value

Checksum of the data in the specified stream.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also