MCPcopy Create free account
hub / github.com/MariaDB/server / resize

Method resize

plugin/handler_socket/libhsclient/string_buffer.hpp:45–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 begin_offset = end_offset = 0;
44 }
45 void resize(size_t len) {
46 if (size() < len) {
47 reserve(len);
48 memset(buffer + end_offset, 0, len - size());
49 }
50 end_offset = begin_offset + len;
51 }
52 void reserve(size_t len) {
53 if (alloc_size >= begin_offset + len) {
54 return;

Callers 11

verify_updateMethod · 0.45
op_insertMethod · 0.45
hs_longrun_init_tableFunction · 0.45
hstcpsvrMethod · 0.45
dbcontextMethod · 0.45
dbcb_set_prep_stmtMethod · 0.45
dbcb_resp_cancelMethod · 0.45
hstcpsvr_workerMethod · 0.45
run_one_nbMethod · 0.45
do_exec_on_indexMethod · 0.45
get_next_rowMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected