SERiF v0.0.1a
Stellar Evolution and Rotation in Four Dimensions
Loading...
Searching...
No Matches
format.hpp File Reference
#include <string>
#include <string_view>
#include "serif/utils/serialize/archive.hpp"
Include dependency graph for format.hpp:
This graph shows which files directly or indirectly include this file:

Namespaces

namespace  serif
 
namespace  serif::utils
 
namespace  serif::utils::serialize
 
namespace  serif::utils::serialize::detail
 

Functions

std::uint64_t serif::utils::serialize::detail::value_count (const Value &value)
 Scalar types have one value; numerical arrays and strings carry their explicit extent.
 
std::string serif::utils::serialize::detail::encode_value (const Value &value, Format format)
 Encode one indexed payload without relying on native object layout or byte order.
 
Result< Value > serif::utils::serialize::detail::decode_value (std::string_view bytes, const Entry &entry, Format format)
 Validate the extent and representation of an independently read payload.
 
Node serif::utils::serialize::detail::provenance (const WriteOptions &options)
 Capture provenance once at the beginning of a write.
 
bool serif::utils::serialize::detail::valid_path (std::string_view path)
 Restrict field names so path separators and line breaks cannot corrupt the ledger.
 

Variables

constexpr std::uint64_t serif::utils::serialize::detail::header_bytes = 512