Where in the buffer is the data? Is it near the front or not?If it’s near the front, then use evbuffer_pullup(). Otherwise, you could provide your own underlying storage with evbuffer_add_reference().On Nov 15, 2016, at 11:58 AM, Devi Prasad Ivaturi <divaturi@xxxxxxxxx> wrote:And I get the impression that these API are to insert data rather than modify existing data.
On Nov 15, 2016 10:43 AM, "Devi Prasad Ivaturi" <divaturi@xxxxxxxxx> wrote:BTW, I did consider reserve/commit space API, but, thought they might be an overkill. I prefer peeking the byte location and modifying it.
On Nov 15, 2016 10:12 AM, "Devi Prasad Ivaturi" <divaturi@xxxxxxxxx> wrote:How can I modify a byte or two directly in evbuffer data?