Monero
Loading...
Searching...
No Matches
portable_storage_template_helper.h File Reference
#include <string>
#include "byte_slice.h"
#include "parserse_base_utils.h"
#include "portable_storage.h"
#include "file_io_utils.h"
#include "span.h"
Include dependency graph for portable_storage_template_helper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  epee
 TODO: (mj-xmr) This will be reduced in an another PR.
namespace  epee::serialization

Functions

template<class t_struct>
bool epee::serialization::load_t_from_json (t_struct &out, const std::string &json_buff)
template<class t_struct>
bool epee::serialization::load_t_from_json_file (t_struct &out, const std::string &json_file)
template<class t_struct>
bool epee::serialization::store_t_to_json (t_struct &str_in, std::string &json_buff, size_t indent=0, bool insert_newlines=true)
template<class t_struct>
std::string epee::serialization::store_t_to_json (t_struct &str_in, size_t indent=0, bool insert_newlines=true)
template<class t_struct>
bool epee::serialization::store_t_to_json_file (t_struct &str_in, const std::string &fpath)
template<class t_struct>
bool epee::serialization::load_t_from_binary (t_struct &out, const epee::span< const uint8_t > binary_buff, const epee::serialization::portable_storage::limits_t *limits=NULL)
template<class t_struct>
bool epee::serialization::load_t_from_binary (t_struct &out, const std::string &binary_buff)
template<class t_struct>
bool epee::serialization::load_t_from_binary_file (t_struct &out, const std::string &binary_file)
template<class t_struct>
bool epee::serialization::store_t_to_binary (t_struct &str_in, byte_slice &binary_buff, size_t initial_buffer_size=8192)
template<class t_struct>
byte_slice epee::serialization::store_t_to_binary (t_struct &str_in, size_t initial_buffer_size=8192)
template<class t_struct>
bool epee::serialization::store_t_to_binary (t_struct &str_in, byte_stream &binary_buff)