diff options
| author | Stefan Boberg <[email protected]> | 2021-10-01 18:50:32 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-10-01 18:50:32 +0200 |
| commit | 4e5fe27def24e21d7e105f59ab98e0c4c80c87dc (patch) | |
| tree | ba476a3955550ea0362e5fdff2ebeb8f06a07a38 /zencore/include | |
| parent | structured cache: Fixed package payload endpoint handling of HEAD (diff) | |
| download | zen-4e5fe27def24e21d7e105f59ab98e0c4c80c87dc.tar.xz zen-4e5fe27def24e21d7e105f59ab98e0c4c80c87dc.zip | |
filesystem: Added FileContents::Flatten() and ensured it's possible to #include filesystem.h standalone
Diffstat (limited to 'zencore/include')
| -rw-r--r-- | zencore/include/zencore/filesystem.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/zencore/include/zencore/filesystem.h b/zencore/include/zencore/filesystem.h index 6678528f6..c7ac7140d 100644 --- a/zencore/include/zencore/filesystem.h +++ b/zencore/include/zencore/filesystem.h @@ -2,9 +2,10 @@ #pragma once -#include "stream.h" #include "zencore.h" +#include <zencore/iobuffer.h> + #include <filesystem> #include <functional> @@ -36,6 +37,8 @@ struct FileContents { std::vector<IoBuffer> Data; std::error_code ErrorCode; + + IoBuffer Flatten(); }; ZENCORE_API FileContents ReadFile(std::filesystem::path Path); |