Github user alanconway commented on the pull request:
Comitted the suggested API upstream. Doesn't do the suggested caching yet.
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
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