yiguolei commented on code in PR #51623:
URL: https://github.com/apache/doris/pull/51623#discussion_r2232841140


##########
be/src/vec/common/string_buffer.hpp:
##########
@@ -186,6 +186,92 @@ class BufferReadable {
     const char* _data;
 };
 
+inline void writeChar(char x, BufferWritable& buf) {
+    buf.write(x);
+}
+
+/** Writes a C-string without creating a temporary object. If the string is a 
literal, then `strlen` is executed at the compilation stage.
+  * Use when the string is a literal.
+  */
+#define writeCString(s, buf) (buf).write((s), strlen(s))
+
+inline void writeJSONString(const char* begin, const char* end, 
BufferWritable& buf) {

Review Comment:
   这个方法应该是bufferwriteable的成员函数



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to