MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / prep_append

Method prep_append

sql/sql_string.h:500–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

498 /* Inline (general) functions used by the protocol functions */
499
500 inline char *prep_append(uint32 arg_length, uint32 step_alloc)
501 {
502 uint32 new_length= arg_length + str_length;
503 if (new_length > Alloced_length)
504 {
505 if (realloc(new_length + step_alloc))
506 return 0;
507 }
508 uint32 old_length= str_length;
509 str_length+= arg_length;
510 return Ptr+ old_length; /* Area to use */
511 }
512
513 inline bool append(const char *s, uint32 arg_length, uint32 step_alloc)
514 {

Callers 4

store_shortMethod · 0.80
store_longMethod · 0.80
store_longlongMethod · 0.80
storeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected