diff options
author | monty@mashka.mysql.fi <> | 2004-03-04 08:50:37 +0200 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2004-03-04 08:50:37 +0200 |
commit | afd8f38f4e16bce5881ffe3734f17fd18eb30f21 (patch) | |
tree | f335ad0e2c6634a947a95d62cbee9a54ee9303e8 /sql/sql_string.h | |
parent | 3baf20ab04f84899da057aed7313911e3e7d0e7b (diff) | |
download | mariadb-git-afd8f38f4e16bce5881ffe3734f17fd18eb30f21.tar.gz |
Optimized GIS functions
Diffstat (limited to 'sql/sql_string.h')
-rw-r--r-- | sql/sql_string.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sql/sql_string.h b/sql/sql_string.h index cdfb00276d4..7f1c56dbfe7 100644 --- a/sql/sql_string.h +++ b/sql/sql_string.h @@ -237,7 +237,7 @@ public: q_*** methods writes values of parameters itself qs_*** methods writes string representation of value */ - void q_append(const char &c) + void q_append(const char c) { Ptr[str_length++] = c; } @@ -262,15 +262,19 @@ public: str_length += data_len; } - void WriteAtPosition(int position, uint32 value) + void write_at_position(int position, uint32 value) { int4store(Ptr + position,value); } - void qs_append(const char *str); + void qs_append(const char *str, uint32 len); void qs_append(double d); void qs_append(double *d); - void qs_append(const char &c); + inline void qs_append(const char c) + { + Ptr[str_length]= c; + str_length++; + } /* Inline (general) functions used by the protocol functions */ |