You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/10/18 03:35:25 UTC

[GitHub] [rocketmq] MumfordSons opened a new issue, #5342: how to get message's body from messgeView

MumfordSons opened a new issue, #5342:
URL: https://github.com/apache/rocketmq/issues/5342

   messageView.getBody returns ByteBuffer object ,does it has graceful method to get messageBody?
   ![image](https://user-images.githubusercontent.com/45234194/196329537-6fc05f7b-de85-4e72-a547-7bddda14e828.png)
   


-- 
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: dev-unsubscribe@rocketmq.apache.org.apache.org

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


[GitHub] [rocketmq] aaron-ai commented on issue #5342: how to get message's body from messgeView

Posted by GitBox <gi...@apache.org>.
aaron-ai commented on issue #5342:
URL: https://github.com/apache/rocketmq/issues/5342#issuecomment-1281813973

   @MumfordSons Thanks for your feedback! Actually message body in `messageView` is readonly, which means you could not get `byte[]` from `bytebuffer` directly because `byte[]` here is the underlying reference and it is not read only.
   
   Just copy `byte[]` from `bytebuffer` If you still need to get `byte[]` from readonly bytebuffer. By the way, creating issues from [rocketmq-clients](https://github.com/apache/rocketmq-clients) could help it to attract more attention. 😊


-- 
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: dev-unsubscribe@rocketmq.apache.org

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


[GitHub] [rocketmq] MumfordSons commented on issue #5342: how to get message's body from messgeView

Posted by GitBox <gi...@apache.org>.
MumfordSons commented on issue #5342:
URL: https://github.com/apache/rocketmq/issues/5342#issuecomment-1281840372

   > @MumfordSons Thanks for your feedback! Actually message body in `messageView` is readonly, which means you could not get `byte[]` from `bytebuffer` directly because `byte[]` here is the underlying reference and it is not readonly.
   > 
   > Just copy `byte[]` from `bytebuffer` If you still need to get `byte[]` from readonly `bytebuffer`. By the way, creating issues from [rocketmq-clients](https://github.com/apache/rocketmq-clients) could help it to attract more attention. 😊
   ok,thanks


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

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


[GitHub] [rocketmq] MumfordSons closed issue #5342: how to get message's body from messgeView

Posted by GitBox <gi...@apache.org>.
MumfordSons closed issue #5342: how to get message's body from messgeView
URL: https://github.com/apache/rocketmq/issues/5342


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

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