31 #include "../my_config.h" 47 order_read_ahead_begin,
50 answr_sync_write_done,
58 order_skippable_fwd_begin,
60 order_skippable_bkd_begin,
68 answr_readahead_stopped,
74 extern bool msg_equivalent(msg_type arg1, msg_type arg2);
75 extern bool msg_continues(msg_type msg);
76 extern char msg_type2char(msg_type x);
77 extern msg_type char2msg_type(
char x);
78 extern msg_type msg_continuation_of(msg_type x);
81 class messaging_decode :
public on_pool
84 messaging_decode() {msgt = msg_type::unset; };
95 bool add_block(
const char *x_input, U_I x_size);
98 msg_type get_type()
const {
return msgt; };
101 infinint get_infinint()
const;
107 std::string get_string()
const;
110 bool get_bool()
const;
113 label get_label()
const;
122 class messaging_encode :
public on_pool
126 messaging_encode() { msgt = msg_type::unset; };
132 void set_type(msg_type val) { msgt = val; };
135 void set_infinint(
const infinint & val);
138 void set_U_I(U_I val);
141 void set_string(
const std::string & val);
144 void set_bool(
bool val);
147 void set_label(
const label & val);
150 void reset_get_block();
162 bool get_block(
char * ptr,
unsigned int & size);
define the datastructure "label" used to identify slice membership to an archive
Memory_file is a generic_file class that only uses virtual memory.
switch module to limitint (32 ou 64 bits integers) or infinint
libdar namespace encapsulate all libdar symbols