about summary refs log tree commit diff stats
path: root/src/io/dynstream.nim
Commit message (Collapse)AuthorAgeFilesLines
* pager: fix broken writeToFilebptato2024-03-291-0/+3
|
* io: derive DynStream from RootObj (not Stream)bptato2024-03-241-44/+26
| | | | | | | | 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.)
* bufreader: add initPacketReaderbptato2024-03-241-0/+7
|
* io: add bufreaderbptato2024-03-211-0/+7
| | | | analogous to bufwriter
* io: add BuferedWriterbptato2024-03-161-0/+3
| | | | | | | | | | 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
* io: add dynstreambptato2024-03-121-0/+82
a new abstraction that we derive posixstream from; hopefully with time we can get rid of std/streams