Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

LocalItem.GetChecksum Method

Namespace: Rebex.IO
Assembly: Rebex.Common.dll (version 8.0.9673)

GetChecksum(String, ChecksumAlgorithm)

Calculates the checksum for the specified file.

Declaration
public static Checksum GetChecksum(string path, ChecksumAlgorithm algorithm)
Parameters
Type Name Description
String path

Path to the file.

ChecksumAlgorithm algorithm

Desired checksum algorithm.

Returns
Type Description
Checksum

Checksum of the specified file.

GetChecksum(String, ChecksumAlgorithm, Int64, Int64)

Calculates the checksum of the specified part of the specified file.

Declaration
public static Checksum GetChecksum(string path, ChecksumAlgorithm algorithm, long offset, long count)
Parameters
Type Name Description
String path

Path to the file.

ChecksumAlgorithm algorithm

Desired checksum algorithm.

Int64 offset

The offset in the local file at which to start processing.

Int64 count

The maximum number of bytes to process. Values of 0 or less indicates that whole file to be processed.

Returns
Type Description
Checksum

Checksum of the specified file.

GetChecksum(Stream, ChecksumAlgorithm, Int64)

Calculates the checksum of the data in specified stream.

Declaration
public static Checksum GetChecksum(Stream input, ChecksumAlgorithm algorithm, long count)
Parameters
Type Name Description
Stream input

The source data stream.

ChecksumAlgorithm algorithm

Desired checksum algorithm.

Int64 count

The maximum number of bytes to process. Values of 0 or less indicates that whole stream to be processed.

Returns
Type Description
Checksum

Checksum of data in the specified stream.

GetChecksum(Stream, ChecksumAlgorithm)

Calculates the checksum of the data in specified stream.

Declaration
public static Checksum GetChecksum(Stream input, ChecksumAlgorithm algorithm)
Parameters
Type Name Description
Stream input

The source data stream.

ChecksumAlgorithm algorithm

Desired checksum algorithm.

Returns
Type Description
Checksum

Checksum of data in the specified stream.

In This Article
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies