Github user alanconway commented on the pull request:
    Comitted the suggested API upstream. Doesn't do the suggested caching yet.
    commit fac7c86c8bc818ea845d6426fd85095a189522d6
    Author: Alan Conway <>
    Commit: Alan Conway <>
        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.
        - verifies computed size matches actual decode size.
        - update java/jython compatilbility layer.
        Code review at
        Did not (yet) implement size caching as suggested in the review as 
        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 or file a JIRA ticket
with INFRA.

Reply via email to