commit
bba5c8a39a
109 files changed
+14085
No files matched your search
@@ -0,0 +1,27 @@
|
||||
#pragma once
|
||||
|
||||
#include "format/vlc_format.hpp"
|
||||
|
||||
#include <filesystem>
|
||||
#include <string>
|
||||
#include <variant>
|
||||
|
||||
namespace voidlibc::voidlink {
|
||||
|
||||
struct ReadError {
|
||||
std::string message;
|
||||
};
|
||||
|
||||
struct Container {
|
||||
voidlibc::format::FileHeader header;
|
||||
std::uint64_t actual_file_size = 0;
|
||||
std::filesystem::path path;
|
||||
};
|
||||
|
||||
using ReadResult = std::variant<Container, ReadError>;
|
||||
|
||||
ReadResult read_container(const std::filesystem::path& in_path);
|
||||
|
||||
void dump_container(const Container& c);
|
||||
|
||||
} // namespace voidlibc::voidlink
|
||||
Reference in new issue
Block a user