xiaokang commented on code in PR #10322:
URL: https://github.com/apache/doris/pull/10322#discussion_r928239578


##########
be/src/vec/io/io_helper.h:
##########
@@ -122,6 +123,19 @@ inline void write_string_binary(const char* s, 
BufferWritable& buf) {
     write_string_binary(StringRef {s}, buf);
 }
 
+inline void write_json_binary(const StringRef& s, BufferWritable& buf) {
+    write_var_uint(s.size, buf);
+    buf.write(s.data, s.size);
+}
+
+inline void write_json_binary(const char* s, BufferWritable& buf) {
+    write_json_binary(StringRef {s}, buf);
+}
+
+inline void write_json_binary(JsonField s, BufferWritable& buf) {

Review Comment:
   just call write_string_binary



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to