aboutsummaryrefslogtreecommitdiff
path: root/zencore/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-08-28 21:03:50 +0200
committerStefan Boberg <[email protected]>2021-08-28 21:03:50 +0200
commit5acd66ed9488664b2f1aaa238a3b982b06f4d115 (patch)
tree43c928ddda0ef7480a29612906cb005ba3fa1fbc /zencore/include
parenttrivial: Simple comment edit (diff)
downloadzen-5acd66ed9488664b2f1aaa238a3b982b06f4d115.tar.xz
zen-5acd66ed9488664b2f1aaa238a3b982b06f4d115.zip
Added WriteFile() overload which accepts a single IoBuffer
Diffstat (limited to 'zencore/include')
-rw-r--r--zencore/include/zencore/filesystem.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/zencore/include/zencore/filesystem.h b/zencore/include/zencore/filesystem.h
index d8140932b..a2d368d6f 100644
--- a/zencore/include/zencore/filesystem.h
+++ b/zencore/include/zencore/filesystem.h
@@ -43,7 +43,8 @@ struct FileContents
ZENCORE_API FileContents ReadFile(std::filesystem::path Path);
ZENCORE_API bool ScanFile(std::filesystem::path Path, uint64_t ChunkSize, std::function<void(const void* Data, size_t Size)>&& ProcessFunc);
-ZENCORE_API bool WriteFile(std::filesystem::path Path, const IoBuffer* const* Data, size_t BufferCount);
+ZENCORE_API void WriteFile(std::filesystem::path Path, const IoBuffer* const* Data, size_t BufferCount);
+ZENCORE_API void WriteFile(std::filesystem::path Path, IoBuffer Data);
struct CopyFileOptions
{