44 template<
class t_struct>
55 template<
class t_struct>
65 template<
class t_struct>
66 bool store_t_to_json(t_struct& str_in, std::string& json_buff,
size_t indent = 0,
bool insert_newlines =
true)
74 template<
class t_struct>
75 std::string
store_t_to_json(t_struct& str_in,
size_t indent = 0,
bool insert_newlines =
true)
77 std::string json_buff;
82 template<
class t_struct>
85 std::string json_buff;
90 template<
class t_struct>
101 template<
class t_struct>
107 template<
class t_struct>
117 template<
class t_struct>
125 template<
class t_struct>
133 template<
class t_struct>
Definition byte_slice.h:69
A partial drop-in replacement for std::ostream.
Definition byte_stream.h:58
Definition portable_storage.h:46
bool load_from_binary(const epee::span< const uint8_t > target, const limits_t *limits=nullptr)
Definition portable_storage.cpp:87
bool store_to_binary(byte_slice &target, std::size_t initial_buffer_size=8192)
Definition portable_storage.cpp:46
bool dump_as_json(std::string &targetObj, size_t indent=0, bool insert_newlines=true)
Definition portable_storage.cpp:70
bool load_from_json(const std::string &source)
Definition portable_storage.cpp:80
Non-owning sequence of data. Does not deep copy.
Definition span.h:55
epee::serialization::portable_storage ps
Definition load_from_binary.cpp:40
bool load_file_to_string(const std::string &path_to_file, std::string &target_str, size_t max_size=1000000000)
Definition file_io_utils.cpp:105
bool save_string_to_file(const std::string &path_to_file, const std::string &str)
Definition file_io_utils.cpp:71
bool store_t_to_binary(t_struct &str_in, byte_slice &binary_buff, size_t initial_buffer_size=8192)
Definition portable_storage_template_helper.h:118
bool store_t_to_json(t_struct &str_in, std::string &json_buff, size_t indent=0, bool insert_newlines=true)
Definition portable_storage_template_helper.h:66
bool store_t_to_json_file(t_struct &str_in, const std::string &fpath)
Definition portable_storage_template_helper.h:83
bool load_t_from_binary_file(t_struct &out, const std::string &binary_file)
Definition portable_storage_template_helper.h:108
bool load_t_from_json_file(t_struct &out, const std::string &json_file)
Definition portable_storage_template_helper.h:56
bool load_t_from_binary(t_struct &out, const epee::span< const uint8_t > binary_buff, const epee::serialization::portable_storage::limits_t *limits=NULL)
Definition portable_storage_template_helper.h:91
bool load_t_from_json(t_struct &out, const std::string &json_buff)
Definition portable_storage_template_helper.h:45
TODO: (mj-xmr) This will be reduced in an another PR.
Definition byte_slice.h:40
Definition binary_utils.h:36
Definition portable_storage.h:53