1#ifndef UNSAFE_STRING_APPEND_INCLUDED
2#define UNSAFE_STRING_APPEND_INCLUDED
35 (*str)[
str->length()] = c;
36 str->length(
str->length() + 1);
40 str->length(
str->length() + 4);
44 str->length(
str->length() + 8);
48 str->length(
str->length() + 8);
51 memcpy(&((*
str)[
str->length()]), data, data_len);
52 str->length(
str->length() + data_len);
62 (*str)[
str->length()] = c;
63 str->length(
str->length() + 1);
Using this class is fraught with peril, and you need to be very careful when doing so.
Definition: sql_string.h:166
Functions for reading and storing in machine-independent format.
void float8store(char *V, double M)
Definition: my_byteorder.h:202
void int4store(char *pT, uint32 A)
Definition: my_byteorder.h:172
uint32_t uint32
Definition: my_inttypes.h:66
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1063
Our own string classes, used pervasively throughout the executor.
void write_at_position(int position, uint32 value, String *str)
Definition: unsafe_string_append.h:55
void q_append(const char c, String *str)
Definition: unsafe_string_append.h:34
void qs_append(const char *str_in, size_t len, String *str)
Definition: sql_string.cc:649
int n
Definition: xcom_base.cc:508