1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-12 08:30:05 +00:00
CLK/Storage/Data/ZX8081.hpp

30 lines
572 B
C++
Raw Normal View History

//
// ZX8081.hpp
// Clock Signal
//
// Created by Thomas Harte on 08/06/2017.
// Copyright 2017 Thomas Harte. All rights reserved.
//
#pragma once
#include <cstdint>
#include <memory>
#include <string>
#include <vector>
2023-05-10 21:02:18 +00:00
namespace Storage::Data::ZX8081 {
struct File {
std::vector<uint8_t> data;
std::wstring name;
bool isZX81;
};
std::shared_ptr<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);
}