Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-1941

Add WritableBuffer API for requesting space when writing complex types

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • proton-j-0.29.0
    • proton-j-0.30.0
    • proton-j
    • None

    Description

      Add new optional API to WritableBuffer that allows a complex types that has already computed the encoding size to request that the buffer have at least that amount of writable space left before an attempt to encode into that buffers occurs.  This can result in either an early failure of the encode avoiding encoding when the result is bound to fail or the underlying buffer can increase its capacity to accommodate the incoming writes before they happen which can result in less churn as a buffer tries to grow as the complex type gets encoded into it. 

      Attachments

        Issue Links

          Activity

            People

              tabish Timothy A. Bish
              tabish Timothy A. Bish
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: