[ https://issues.apache.org/jira/browse/PROTON-1941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timothy Bish resolved PROTON-1941. ---------------------------------- Resolution: Fixed > Add WritableBuffer API for requesting space when writing complex types > ---------------------------------------------------------------------- > > Key: PROTON-1941 > URL: https://issues.apache.org/jira/browse/PROTON-1941 > Project: Qpid Proton > Issue Type: Bug > Components: proton-j > Affects Versions: proton-j-0.29.0 > Reporter: Timothy Bish > Assignee: Timothy Bish > Priority: Minor > Fix For: proton-j-0.30.0 > > > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org