diff options
author | rtk0c <[email protected]> | 2021-09-06 00:15:35 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2021-09-06 00:15:35 -0700 |
commit | 04653742243e4bb6452108cfd0fef2f4afd8f23b (patch) | |
tree | a4a5e0cc8d16ffe78859fab9ee5e487a7d22d81e /core/src/Utils/IO/Archive.cpp | |
parent | 70e00f817e9596a746800ba4afec2b7c4ca25142 (diff) |
Fix all compile errors, remove OperateIOProxy requirement from DataStream api
Diffstat (limited to 'core/src/Utils/IO/Archive.cpp')
-rw-r--r-- | core/src/Utils/IO/Archive.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/Utils/IO/Archive.cpp b/core/src/Utils/IO/Archive.cpp index 6c4084f..aa47b67 100644 --- a/core/src/Utils/IO/Archive.cpp +++ b/core/src/Utils/IO/Archive.cpp @@ -10,6 +10,11 @@ constexpr uint8_t kByteOrderMark = []() { } }(); +std::span<const uint8_t, 8> DataArchive::GetMagicNumbers() +{ + return std::span<const uint8_t, 8>{ kMagicNumbers }; +} + std::optional<InputDataStream> DataArchive::LoadFile(const std::filesystem::path& path) { auto stream = InputDataStream(InputFileStream(path)); |