Project Alice
Loading...
Searching...
No Matches
serialization.cpp File Reference
#include "dcon_generated.hpp"
#include "system_state.hpp"
#include "serialization.hpp"
#include <random>
#include <ctime>
#include "blake2.h"
#include "zstd.h"
Include dependency graph for serialization.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  sys
 

Macros

#define ZSTD_STATIC_LINKING_ONLY
 
#define XXH_NAMESPACE   ZSTD_
 

Functions

uint8_t const * sys::read_scenario_header (uint8_t const *ptr_in, scenario_header &header_out)
 
uint8_t const * sys::read_save_header (uint8_t const *ptr_in, save_header &header_out)
 
uint8_tsys::write_scenario_header (uint8_t *ptr_in, scenario_header const &header_in)
 
uint8_tsys::write_save_header (uint8_t *ptr_in, save_header const &header_in)
 
size_t sys::sizeof_scenario_header (scenario_header const &header_in)
 
size_t sys::sizeof_save_header (save_header const &header_in)
 
void sys::read_mod_path (uint8_t const *ptr_in, uint8_t const *lim, native_string &path_out)
 
uint8_t const * sys::load_mod_path (uint8_t const *ptr_in, sys::state &state)
 
uint8_tsys::write_mod_path (uint8_t *ptr_in, native_string const &path_in)
 
size_t sys::sizeof_mod_path (native_string const &path_in)
 
mod_identifier sys::extract_mod_information (uint8_t const *ptr_in, uint64_t file_size)
 
uint8_tsys::write_compressed_section (uint8_t *ptr_out, uint8_t const *ptr_in, uint32_t uncompressed_size)
 
template<typename T >
uint8_t const * sys::with_decompressed_section (uint8_t const *ptr_in, T const &function)
 
uint8_t const * sys::read_scenario_section (uint8_t const *ptr_in, uint8_t const *section_end, sys::state &state)
 
uint8_tsys::write_scenario_section (uint8_t *ptr_in, sys::state &state)
 
scenario_size sys::sizeof_scenario_section (sys::state &state)
 
uint8_t const * sys::read_save_section (uint8_t const *ptr_in, uint8_t const *section_end, sys::state &state)
 
uint8_tsys::write_save_section (uint8_t *ptr_in, sys::state &state)
 
size_t sys::sizeof_save_section (sys::state &state)
 
void sys::write_scenario_file (sys::state &state, native_string_view name, uint32_t count)
 
bool sys::try_read_scenario_file (sys::state &state, native_string_view name)
 
bool sys::try_read_scenario_and_save_file (sys::state &state, native_string_view name)
 
bool sys::try_read_scenario_as_save_file (sys::state &state, native_string_view name)
 
std::string sys::make_time_string (uint64_t value)
 
void sys::write_save_file (sys::state &state, save_type type, std::string const &name)
 
bool sys::try_read_save_file (sys::state &state, native_string_view name)
 

Macro Definition Documentation

◆ XXH_NAMESPACE

#define XXH_NAMESPACE   ZSTD_

Definition at line 8 of file serialization.cpp.

◆ ZSTD_STATIC_LINKING_ONLY

#define ZSTD_STATIC_LINKING_ONLY

Definition at line 7 of file serialization.cpp.