You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/10/31 07:04:18 UTC

[GitHub] [pulsar-client-cpp] shibd commented on a diff in pull request #66: Add new interfaces to improve data consuming performance. (#65)

shibd commented on code in PR #66:
URL: https://github.com/apache/pulsar-client-cpp/pull/66#discussion_r1009084692


##########
include/pulsar/Message.h:
##########
@@ -100,6 +100,20 @@ class PULSAR_PUBLIC Message {
      */
     KeyValue getKeyValueData() const;
 
+    /**
+     * Release and return the message's payload.
+     *
+     * @return the released payload.
+     */
+    std::string releaseData();
+
+    /**
+     * Move payload into the given string.
+     *
+     * @param data the string that receiving the payload's ownership.
+     */
+    void moveDataIntoString(std::string& data);

Review Comment:
   useless interface.



-- 
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-unsubscribe@pulsar.apache.org

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