Signature
native hash_file(const fileName[], const HashType:type, output[], const outputSize);
Description
Generate a hash value using the contents of a given file
Parameters
- fileName — Path of file to be hashed.
- type — Type of selected hashing algorithm. See Hash_* constants in amxconst.inc file.
- output — Output string to store hash in.
- outputSize — The maximum size of the output string to store hash in.
Returns
Number of written bytes.
Errors
- If the file couldn't be opened, an error is thrown.