coastline 0.0.4
Loading...
Searching...
No Matches
ghostfile.h File Reference
#include <cstdint>
#include <cstdio>
#include <optional>
#include <span>
#include <string>
#include <vector>
#include <nlohmann/json_fwd.hpp>
Include dependency graph for ghostfile.h:

Go to the source code of this file.

Namespaces

namespace  coastline

Functions

std::optional< nlohmann::ordered_json > coastline::GhostToJson (std::span< const std::uint8_t > bytes)
 Describe a ghost recording of the PC release (RGho) as JSON: the recording, the settings, the name of its slot, and each frame with every bit in a named field.
std::optional< std::vector< std::uint8_t > > coastline::GhostFromJson (const nlohmann::ordered_json &json)
 Build the file of a ghost recording from its JSON, the inverse of GhostToJson().
std::string coastline::FormatGhostJson (const nlohmann::ordered_json &json)
 Write the JSON of a recording with each frame on one line.