[ https://issues.apache.org/jira/browse/PROTON-883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Darryl L. Pierce updated PROTON-883: ------------------------------------ Attachment: 0001-PROTON-883-Wrap-pn_transport_peek-for-Ruby.patch > Return the raw bytes as an array for a message in Ruby > ------------------------------------------------------ > > Key: PROTON-883 > URL: https://issues.apache.org/jira/browse/PROTON-883 > Project: Qpid Proton > Issue Type: Improvement > Components: ruby-binding > Reporter: Darryl L. Pierce > Assignee: Darryl L. Pierce > Attachments: 0001-PROTON-883-Wrap-pn_transport_peek-for-Ruby.patch > > > When retrieving a message that contains raw bytes rather than strings, the > Swig bindings can return a truncated string. This is due to the method > SWIG_FromCharPtr stopping at the first 0 byte since it's treating the content > as a C string and not as an array of bytes. > The code should, instead, using something like SWIG_FromCharPtrAndSize to > return the full content and not guess at the length based on null bytes. -- This message was sent by Atlassian JIRA (v6.3.4#6332)