I have a question which I probably could answer myself but it would require some additional documentation and source code reading.
I need to write a coroutine which will indefinitely read chunks of bytes from input stream or channel (it probably will be socket channel or stream) and write transformed chunk of bytes into another stream or channel in the fastest way possible. Let's assume that input chunks have the same fixed length (few bytes). What is the best way to do it?