// Copyright (C) 2020 Jérôme Leclercq // This file is part of the "Nazara Engine - Core module" // For conditions of distribution and use, see copyright notice in Config.hpp #include #include 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 std::filesystem::path& 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 std::filesystem::path& filePath) { return Nz::ComputeHash(hash, File(filePath)); } } #include