SERiF v0.0.1a
Stellar Evolution and Rotation in Four Dimensions
Loading...
Searching...
No Matches
format.cpp File Reference
#include "format.hpp"
#include <bit>
#include <charconv>
#include <cmath>
#include <iomanip>
#include <limits>
#include <locale>
#include <sstream>
#include <type_traits>
Include dependency graph for format.cpp:

Namespaces

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

Functions

std::string serif::utils::serialize::fingerprint (std::string_view bytes)
 Versioned content identity for accidental corruption and resource matching; not a cryptographic signature.
 
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.
 
bool serif::utils::serialize::detail::valid_path (std::string_view path)
 Restrict field names so path separators and line breaks cannot corrupt the ledger.