This is my chunking algorithm: [https://forum.nim-lang.org/t/5579#34696](https://forum.nim-lang.org/t/5579#34696)
I can't say about the `atEnd`, would need to investigate into it. For reference for other to the previous thread: [https://forum.nim-lang.org/t/5504#34400](https://forum.nim-lang.org/t/5504#34400)
