Core/File: Add WriteWhole static function

This commit is contained in:
SirLynix
2022-05-12 18:11:41 +02:00
parent a8e69882fb
commit 7c2b8e0576
2 changed files with 21 additions and 2 deletions

View File

@@ -57,6 +57,7 @@ namespace Nz
static inline ByteArray ComputeHash(HashType hash, const std::filesystem::path& filePath);
static inline ByteArray ComputeHash(AbstractHash& hash, const std::filesystem::path& filePath);
static std::optional<std::vector<UInt8>> ReadWhole(const std::filesystem::path& path);
static bool WriteWhole(const std::filesystem::path& path, const void* data, std::size_t size);
private:
void FlushStream() override;