Calculates the checksum of the specified part of the specified file.
Namespace:
Rebex.IO
Assembly:
Rebex.Common (in Rebex.Common.dll)
Syntax
Visual Basic |
---|
Public Shared Function GetChecksum ( _ path As String, _ algorithm As ChecksumAlgorithm, _ offset As Long, _ count As Long _ ) As Checksum |
C# |
---|
public static Checksum GetChecksum( string path, ChecksumAlgorithm algorithm, long offset, long count ) |
Parameters
- path
- Type: System..::..String
Path to the file.
- algorithm
- Type: Rebex.IO..::..ChecksumAlgorithm
Desired checksum algorithm.
- offset
- Type: System..::..Int64
The offset in the local file at which to start processing.
- count
- Type: System..::..Int64
The maximum number of bytes to process.