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

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

Github user gemmellr commented on the issue:

    https://github.com/apache/qpid-proton-j/pull/7
  
    I've pushed a change to expose the currently available bytes length. I went 
with 'available()' since it felt natural for what its indicating, and applying 
to both send/recv cases. In hindsight, 'remaining' could also be good, as thats 
what proton uses for actual buffers, though I think I still prefer 'available' 
here.
    
    I've just left the existing method unchanged for now, keeping it aligned 
with the various other related impl methods and as a bonus delays screwing with 
anyone who had been reflecting access to it thus far, we can consolidate them 
as and when the impl changes otherwise.


> 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