async_read_until expects a basic_streambuf into which the data will be read. I don’t want to allocate additional memory, but using a memory address (from a specified interface that I’m not allowed to change) as the target buffer.
Is it possible to create a streambuf with an external memory address or do I need to write a wrapper-class?
Finally solved the issue by writing my own
async_read_until_delimclass which expects a memory-pointer and a maximum value of bytes to read. It’s as close as possible to the original boost implementation, but has a few adjustments which should lead to a more performant execution.So, I hope it will be usefull for someone too.