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

#include <Cplt/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);
};