aboutsummaryrefslogtreecommitdiff
path: root/core/src/Utils/IO/Archive.hpp
blob: 1bb8b59853de7bf79b1e3e7db4f14016e3e1241a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include "Utils/IO/DataStream.hpp"

#include <cstdint>
#include <filesystem>
#include <optional>
#include <span>

class DataArchive
{
public:
	static std::span<const uint8_t, 8> GetMagicNumbers();

	// TODO more complete impl
	static std::optional<InputDataStream> LoadFile(const std::filesystem::path& path);
	static std::optional<OutputDataStream> SaveFile(const std::filesystem::path& path);
};