Same as the old thread. I used a memory_closure struct this time. I quickly looked over the patches and I think we could even save buffer and buffer_available in there to reduce the parameter count further but then we should rename the struct (but read_data isn't the best name either).
Hope the changelog entries are fine, I'll try to add them from now on. Thanks, Timm