1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-11-06 14:17:27 +00:00
Files
CLK/Storage/Data/ZX8081.hpp
2025-01-18 23:25:08 -05:00

30 lines
572 B
C++

//
// ZX8081.hpp
// Clock Signal
//
// Created by Thomas Harte on 08/06/2017.
// Copyright 2017 Thomas Harte. All rights reserved.
//
#pragma once
#include <cstdint>
#include <optional>
#include <string>
#include <vector>
namespace Storage::Data::ZX8081 {
struct File {
std::vector<uint8_t> data;
std::wstring name;
bool isZX81;
};
std::optional<File> FileFromData(const std::vector<uint8_t> &data);
std::wstring StringFromData(const std::vector<uint8_t> &data, bool is_zx81);
std::vector<uint8_t> DataFromString(const std::wstring &string, bool is_zx81);
}