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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]