Ftp.CalculateLocalChecksum Method
Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9313)
CalculateLocalChecksum(FtpChecksumType, String)
Calculates the checksum for the specified local file. This method will be deprecated. Please use GetChecksum(String, ChecksumAlgorithm) method instead.
Declaration
public static string CalculateLocalChecksum(FtpChecksumType type, string localPath)
Parameters
| Type | Name | Description |
|---|---|---|
| FtpChecksumType | type | Desired checksum type. |
| String | localPath | Path of the local file. |
Returns
| Type | Description |
|---|---|
| String | Checksum of the specified local file. |
CalculateLocalChecksum(FtpChecksumType, String, Int32, Int64)
Calculates the checksum for the specified local file. This method will be deprecated. Please use GetChecksum(String, ChecksumAlgorithm) method instead.
Declaration
public static string CalculateLocalChecksum(FtpChecksumType type, string localPath, int localOffset, long length)
Parameters
| Type | Name | Description |
|---|---|---|
| FtpChecksumType | type | Desired checksum type. |
| String | localPath | Path of the local file. |
| Int32 | localOffset | The offset in the local file where reading will start. |
| Int64 | length | The maximum number of bytes to read. |
Returns
| Type | Description |
|---|---|
| String | Checksum of the specified local file. |
CalculateLocalChecksum(FtpChecksumType, Stream)
Calculates the checksum of the data in specified stream. This method will be deprecated. Please use GetChecksum(String, ChecksumAlgorithm) method instead.
Declaration
public static string CalculateLocalChecksum(FtpChecksumType type, Stream sourceStream)
Parameters
| Type | Name | Description |
|---|---|---|
| FtpChecksumType | type | Desired checksum type. |
| Stream | sourceStream | The source data stream. |
Returns
| Type | Description |
|---|---|
| String | Checksum of the data in the specified stream. |
CalculateLocalChecksum(FtpChecksumType, Stream, Int64)
Calculates the checksum of the data in specified stream. This method will be deprecated. Please use GetChecksum(String, ChecksumAlgorithm) method instead.
Declaration
public static string CalculateLocalChecksum(FtpChecksumType type, Stream sourceStream, long length)
Parameters
| Type | Name | Description |
|---|---|---|
| FtpChecksumType | type | Desired checksum type. |
| Stream | sourceStream | The source data stream. |
| Int64 | length | The maximum number of bytes to read. |
Returns
| Type | Description |
|---|---|
| String | Checksum of the data in the specified stream. |