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:167
Functions for reading and storing in machine-independent format.
void float8store(char *V, double M)
Definition: my_byteorder.h:210
void int4store(char *pT, uint32 A)
Definition: my_byteorder.h:180
uint32_t uint32
Definition: my_inttypes.h:67
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1105
Our own string classes, used pervasively throughout the executor.
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:650
int n
Definition: xcom_base.cc:509