32 #include "../my_config.h"
58 U_I initial_size = 10240,
59 U_I unused_read_ratio = 10,
60 U_I observation_read_number = 100,
61 U_I max_size_hit_read_ratio = 50,
62 U_I unused_write_ratio = 10,
63 U_I observation_write_number = 100,
64 U_I max_size_hit_write_ratio = 50);
89 buf() { buffer = NULL; size = next = last = 0; };
90 buf(
const buf &ref) {
throw SRC_BUG; };
91 ~buf() {
if(buffer != NULL)
delete [] buffer; };
92 void resize(U_I newsize);
94 void clear() { next = last = 0; };
99 struct buf buffer_cache;
100 infinint current_position;
103 bool failed_increase;
106 U_I read_unused_rate;
107 U_I read_overused_rate;
110 U_I write_unused_rate;
111 U_I write_overused_rate;
113 U_I stat_read_unused;
114 U_I stat_read_overused;
115 U_I stat_read_counter;
117 U_I stat_write_overused;
118 U_I stat_write_counter;
122 void clear_read() {
if(read_mode) buffer_cache.clear(); };