about summary refs log tree commit diff stats
path: root/src/io/bufwriter.nim
Commit message (Collapse)AuthorAgeFilesLines
* io: derive DynStream from RootObj (not Stream)bptato2024-03-241-8/+2
| | | | | | | | This way they are no longer compatible, but we no longer need them to be compatible anyway. (This also forces us to throw out the old serialize module, and use packet writers everywhere.)
* io: add bufreaderbptato2024-03-211-11/+24
| | | | analogous to bufwriter
* buffer: also buffer reads for packetsbptato2024-03-201-4/+5
| | | | | Since we know the length of packets, we can also read them in in one call. Though I really wish we could do this without the StringStream.
* io: add BuferedWriterbptato2024-03-161-0/+175
Unsurprisingly enough, calling `write` a million times is never going to be very fast. BufferedWriter basically does the same thing as serialize.swrite did, but queues up writes in batches before sending them. TODO: give sread a similar treatment