❔ System.IO.Pipelines cannot complete the reader
Hey. I'm having
All of the reading goes successfully, but when I try to
Does anyone have any idea what could be up?
Approximate code is here (it doesn't contain the data structures, just shows the most important functions).
https://paste.mod.gg/wchbuamcrxfn/0
reader.CompleteAsync throw because it tries to return an empty buffer to the array pool. All of the reading goes successfully, but when I try to
CompleteAsync the reader, it ends up in that code with an invalid state for one of the segments, apparentlyDoes anyone have any idea what could be up?
Approximate code is here (it doesn't contain the data structures, just shows the most important functions).
https://paste.mod.gg/wchbuamcrxfn/0

A tool for sharing your source code with the world!