Documentation for Documentation & File
Former-commit-id: 8a69e6dca76fba4a23b36c563b52c4ccbbec7309
This commit is contained in:
@@ -8,11 +8,27 @@
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
/*!
|
||||
* \brief Computes the hash for the file
|
||||
* \return ByteArray represing the result of the hash of the file
|
||||
*
|
||||
* \param hash Hash to execute
|
||||
* \param filePath Path for the file
|
||||
*/
|
||||
|
||||
inline ByteArray File::ComputeHash(HashType hash, const String& filePath)
|
||||
{
|
||||
return ComputeHash(AbstractHash::Get(hash).get(), filePath);
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Computes the hash for the file
|
||||
* \return ByteArray represing the result of the hash of the file
|
||||
*
|
||||
* \param hash Hash to execute
|
||||
* \param filePath Path for the file
|
||||
*/
|
||||
|
||||
inline ByteArray File::ComputeHash(AbstractHash* hash, const String& filePath)
|
||||
{
|
||||
return Nz::ComputeHash(hash, File(filePath));
|
||||
|
||||
Reference in New Issue
Block a user