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

Method prep_append

sql/sql_string.h:802–813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

800 int reserve(size_t space_needed, size_t grow_by);
801
802 inline char *prep_append(uint32 arg_length, uint32 step_alloc)
803 {
804 uint32 new_length= arg_length + str_length;
805 if (new_length > Alloced_length)
806 {
807 if (unlikely(realloc(new_length + step_alloc)))
808 return 0;
809 }
810 uint32 old_length= str_length;
811 str_length+= arg_length;
812 return Ptr + old_length; // Area to use
813 }
814
815
816 void q_net_store_length(ulonglong length)

Callers 5

store_shortMethod · 0.45
store_longMethod · 0.45
store_longlongMethod · 0.45
store_floatMethod · 0.45
store_doubleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected