10 vars.
set(walk->m_guid,walk);
17 if (p_stream->read(&guid,
sizeof(guid),p_abort) !=
sizeof(guid))
break;
19 p_stream->read_lendian_t(size,p_abort);
22 if (vars.
query(guid,var)) {
26 }
catch(exception_io_data) {}
29 p_stream->skip_object(size,p_abort);
43 p_stream->write_lendian_t(ptr->
m_guid,p_abort);
44 p_stream->write_lendian_t(pfc::downcast_guarded<t_uint32>(temp.
get_size()),p_abort);
53 p_stream->write_object(get_ptr(),length(),p_abort);
58 p_stream->read_string_raw(temp,p_abort);
const t_item * get_ptr() const
virtual void set_data_raw(stream_reader *p_stream, t_size p_sizehint, abort_callback &p_abort)=0
Sets state of the variable. Called only from main thread, when reading configuration file...
static void config_write_file(stream_writer *p_stream, abort_callback &p_abort)
For internal use only, do not call.
virtual void get_data_raw(stream_writer *p_stream, abort_callback &p_abort)=0
Retrieves state of the variable. Called only from main thread, when writing configuration file...
void set_data_raw(stream_reader *p_stream, t_size p_sizehint, abort_callback &p_abort)
Sets state of the variable. Called only from main thread, when reading configuration file...
static void config_read_file(stream_reader *p_stream, abort_callback &p_abort)
For internal use only, do not call.
void flush_remaining(abort_callback &p_abort)
Reader part of cfg_var object. In most cases, you should use cfg_var instead of using cfg_var_reader ...
static cfg_var_reader * g_list
void set_size(t_size p_size)
static cfg_var_writer * g_list
void get_data_raw(stream_writer *p_stream, abort_callback &p_abort)
Retrieves state of the variable. Called only from main thread, when writing configuration file...
void set(const _t_key &p_key, const _t_value &p_value)
Writer part of cfg_var object. In most cases, you should use cfg_var instead of using cfg_var_writer ...
T byteswap_if_be_t(T p_param)
string8_t< pfc::alloc_fast_aggressive > string8_fastalloc
bool query(const _t_key &p_key, _t_value &p_value) const