[ 
https://issues.apache.org/jira/browse/PROTON-1409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15890494#comment-15890494
 ] 

ASF GitHub Bot commented on PROTON-1409:
----------------------------------------

Github user gemmellr commented on the issue:

    https://github.com/apache/qpid-proton-j/pull/7
  
    The javadoc could do with making a little clearer that it returns the 
currently unread length of the existing payload for the delivery, and is not 
the length of the delivery (which might not be complete yet) or the buffer 
containing the contents, which both may differ at any given time.
    
    A test would be nice so the new public method is at used and folks can see 
how it is.


> Expose delivery size
> --------------------
>
>                 Key: PROTON-1409
>                 URL: https://issues.apache.org/jira/browse/PROTON-1409
>             Project: Qpid Proton
>          Issue Type: Improvement
>          Components: proton-j
>            Reporter: clebert suconic
>
> When I'm receiving the Delivery on the broker, I have to pre-create a buffer 
> to copy the byte array inside the Delivery.
> I would like to have it exposed so I only allocated the required bytes.
> I will follow up with a PR on this



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to