 | FileHashIsValid(Stream, Int32, String) Method |
Checks if the hash for specified stream has correct value.
Namespace: Limilabs.FTP.Client.HashAssembly: Ftp (in Ftp.dll) Version: 2.0.26109.1248
Syntaxpublic bool IsValid(
Stream stream,
int length,
string expectedHashAsHex
)
Public Function IsValid (
stream As Stream,
length As Integer,
expectedHashAsHex As String
) As Boolean
public:
bool IsValid(
Stream^ stream,
int length,
String^ expectedHashAsHex
)
member IsValid :
stream : Stream *
length : int *
expectedHashAsHex : string -> bool Parameters
- stream Stream
- The stream to compute hash for.
- length Int32
- Number of bytes to compute hash for.
- expectedHashAsHex String
- Expected hash encoded as hex string (e.g.: 7BEE53C5).
Return Value
BooleanTrue if hashes match, false otherwise.
See Also