Github user alanconway commented on the pull request:

    https://github.com/apache/qpid-proton/pull/11#issuecomment-81791421
  
    Comitted the suggested API upstream. Doesn't do the suggested caching yet.
    
    commit fac7c86c8bc818ea845d6426fd85095a189522d6
    Author: Alan Conway <acon...@redhat.com>
    Commit: Alan Conway <acon...@redhat.com>
    
        NO-JIRA: Measure size of encoded data.
        
        Introduce pn_data_size() to calculate the buffer space required to 
encode a data object.
        
        - encoder.c measures full size of data.
        - interop.py verifies computed size matches actual decode size.
        - update java/jython compatilbility layer.
        
        Code review at https://github.com/apache/qpid-proton/pull/11.
        
        Did not (yet) implement size caching as suggested in the review as 
invalidating
        the cache is a little involved. Leaving it for another day.



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to