@e5l I am tired of tryitng to support my kotlinx-io fork, so I am trying to migrate to ktor-io. Some things are uggly but manageable, but I've just spent almost the whold day with the following problem: it seems that
readBytes
method does not actually advance the input read pointer. Is it intentional?
altavir
02/28/2021, 3:30 PM
Two subsequent readBytes read from the same place to be precise
altavir
02/28/2021, 5:29 PM
The problem seems to be with MemoryMappedBuffer I use as a source for ByteReadPacket
e
e5l
02/28/2021, 7:17 PM
Nope, please file an issue
a
altavir
02/28/2021, 7:23 PM
After I replaced memory map by the byte array, it is working properly. I will file an issue if I will have time to do a reproducer.