Can we migrate towards a MIOBuffer interface that looks more like this https://godbolt.org/z/Wc_e7N ? Where users of the interface would not have to directly manipulate IOBuffers?
TBD is a mechanism for backpressure on the input/writing side of the MIOBuffer when one of them or all collectively are reaching some limit on memory use.