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

LocalItem.GetChecksum Method

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

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.

Returns
Type Description
Checksum

Checksum of the specified file.

In This Article
  • GetChecksum(String, ChecksumAlgorithm)
  • GetChecksum(String, ChecksumAlgorithm, Int64, Int64)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies