1#ifndef UNSAFE_STRING_APPEND_INCLUDED
2#define UNSAFE_STRING_APPEND_INCLUDED
36 (*str)[
str->length()] = c;
37 str->length(
str->length() + 1);
41 str->length(
str->length() + 4);
45 str->length(
str->length() + 8);
49 str->length(
str->length() + 8);
52 memcpy(&((*
str)[
str->length()]), data, data_len);
53 str->length(
str->length() + data_len);
63 (*str)[
str->length()] = c;
64 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:168
Functions for reading and storing in machine-independent format.
void float8store(char *V, double M)
Definition: my_byteorder.h:203
void int4store(char *pT, uint32 A)
Definition: my_byteorder.h:173
uint32_t uint32
Definition: my_inttypes.h:67
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1052
Our own string classes, used pervasively throughout the executor.
unsigned int uint
Definition: uca9-dump.cc:75
void write_at_position(int position, uint32 value, String *str)
Definition: unsafe_string_append.h:56
void q_append(const char c, String *str)
Definition: unsafe_string_append.h:35
void qs_append(const char *str_in, size_t len, String *str)
Definition: sql_string.cc:643
int n
Definition: xcom_base.cc:509