16 #include "sql_cache.h"
30 block(ini_block), headers_len(ini_headers_len)
32 cur_data= ((uchar*)block)+headers_len;
33 data_end= cur_data + (block->used-headers_len);
35 first_block= ini_block;
39 void use_next_block(
bool writing)
46 DBUG_ASSERT(block->next != block);
47 DBUG_ASSERT(block->next != first_block);
55 block->type= Query_cache_block::RES_CONT;
57 DBUG_ASSERT(block->type == Query_cache_block::RES_CONT);
59 cur_data= ((uchar*)block)+headers_len;
60 data_end= cur_data + (block->used-headers_len);
63 void store_uchar(uchar c);
64 void store_short(ushort s);
65 void store_int(uint
i);
66 void store_ll(ulonglong ll);
67 void store_str_only(
const char *str, uint str_len);
68 void store_str(
const char *str, uint str_len);
69 void store_safe_str(
const char *str, uint str_len);
75 void load_str_only(
char *buffer, uint str_len);
76 char *load_str(
MEM_ROOT *alloc, uint *str_len);
77 int load_safe_str(
MEM_ROOT *alloc,
char **str, uint *str_len);
78 int load_column(
MEM_ROOT *alloc,
char **column);
81 uint emb_count_querycache_size(THD *thd);
84 bool net_send_eof(THD *thd, uint server_status, uint total_warn_count);