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

Add WritableBuffer API for requesting space when writing complex types

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: proton-j-0.29.0
    • Fix Version/s: proton-j-0.30.0
    • Component/s: proton-j
    • Labels:
      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

          Activity

            People

            • Assignee:
              tabish121 Timothy Bish
              Reporter:
              tabish121 Timothy Bish
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: