Commit graph

15 commits

Author SHA1 Message Date
Zahary Karadjov
1f49f1179d
Add destructors 2020-04-11 23:31:08 +03:00
Zahary Karadjov
3efad6f7f2
Harmonize the APIs and the coding practices in input_stream and output_stream 2020-04-10 15:30:58 +03:00
Zahary Karadjov
9da65e792e
Restore the tests of the FileOutput stream 2020-04-09 22:45:40 +03:00
Zahary Karadjov
62136f8e79
[OutputStream] Clean up TODO items unlocked by Nim 1.2; Simplify the public API 2020-04-09 22:21:20 +03:00
Zahary Karadjov
8a3cf6778d
Support Nim 1.2 2020-03-24 16:29:57 +02:00
andri lim
e7a34b74f2 fixes output stream casting problem 2019-09-03 11:57:57 +03:00
andri lim
12250ec3ed fixes zero length input bug in output_stream.append 2019-09-03 11:57:57 +03:00
Zahary Karadjov
6bbe1c21b6
Cosmetic renames and a simple helper for writing to arrays 2019-08-07 05:18:56 +03:00
Zahary Karadjov
2bc3941e76
Support for arbitrarily large fixed delayed writes 2019-07-26 23:52:16 +03:00
Zahary Karadjov
3d324a8558
more migration to nim-stew 2019-07-08 12:14:21 +03:00
Zahary Karadjov
faf75d4326
Simplify the inner workings of output streams and build out more of the public API 2019-07-07 15:03:57 +03:00
Zahary Karadjov
1d693484f6 Added a helper proc: DelayedWriteCursor.totalBytesWrittenAfterCursor
Delayed writes a typically used to implement length-prefixed messages
and this procs makes it very easy to handle this use case.
2019-06-16 18:49:49 +03:00
Ștefan Talpalaru
acd5a6063c
assert() -> doAssert()
Also fixed a test and added the other to the Nimble task.
2019-03-14 04:19:41 +01:00
Zahary Karadjov
7903f1680f More comprehensive OutputStream; Basic support for stream cursors 2019-03-11 11:36:32 +02:00
Zahary Karadjov
cb54254b77 Initial version (extracted from nim-serialization) 2018-12-17 23:49:42 +02:00