Commit graph

39 commits

Author SHA1 Message Date
Zahary Karadjov
1f49f1179d
Add destructors 2020-04-11 23:31:08 +03:00
Zahary Karadjov
b234a99e56
Fix a bug affecting Snappy (crash when using fileInputs) 2020-04-10 17:37:51 +03:00
Zahary Karadjov
26a5d82150
Work around a Nim bug 2020-04-10 16:43:12 +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
fa415774c3
Add vtableAddr as a reusable helper for working around a Nim issue 2020-04-09 22:56:15 +03:00
Zahary Karadjov
9da65e792e
Restore the tests of the FileOutput stream 2020-04-09 22:45:40 +03:00
Zahary Karadjov
49eb9a10d3
[OutputStream] Simpler API for stream implementers 2020-04-09 22:41:19 +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
Zahary Karadjov
5fb40e4ffd
Remove deprecation warnings 2020-02-22 01:12:48 +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
Ștefan Talpalaru
1e85ab9150
CI: update script path 2019-08-24 03:10:27 +02:00
Ștefan Talpalaru
aa4289cf11
CI: update script path 2019-08-24 03:05:34 +02:00
Zahary Karadjov
6bbe1c21b6
Cosmetic renames and a simple helper for writing to arrays 2019-08-07 05:18:56 +03:00
Zahary Karadjov
9c5c6bdd6f
Fix a build issue affecting Nim 0.20.2 2019-08-01 19:26:22 +03:00
Zahary Karadjov
6250518b6f
Stronger guarantees for write block sizes
Certain output streams such as compressors and ciphers may require
a certain block size on each write.
2019-07-31 01:50:05 +03:00
Zahary Karadjov
2bc3941e76
Support for arbitrarily large fixed delayed writes 2019-07-26 23:52:16 +03:00
Zahary Karadjov
26e4f63c57
Fix a strange build issue, manifesting only in certain contexts 2019-07-10 20:17:05 +03:00
Zahary Karadjov
c8a7409c96
Add InputStream.endPos 2019-07-08 17:12:50 +03:00
Zahary Karadjov
3d324a8558
more migration to nim-stew 2019-07-08 12:14:21 +03:00
Zahary Karadjov
b6b95b1da3
More sophisticated append proc taking various short-cuts when possible 2019-07-07 15:03:57 +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
f1c376cd91
Writer cursors that precisely track to which page they belong 2019-07-07 15:03:56 +03:00
Jacek Sieka
5135173f60
std_shims -> stew 2019-07-07 11:44:59 +02:00
Ștefan Talpalaru
34f57cb144
Merge branch 'buildnim' 2019-06-18 21:53:22 +02:00
Ștefan Talpalaru
db1d3c0f6b
CI setup 2019-06-18 19:40:07 +02: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
6e839bb5fa
.gitignore 2019-03-31 22:35:39 +02:00
Ștefan Talpalaru
464034d780
Merge branch 'nimble' 2019-03-25 17:41:56 +01:00
Ștefan Talpalaru
f0d909b0a6
*.nimble: don't use imports 2019-03-25 17:37:59 +01:00
Zahary Karadjov
7dd9a92ccb Work-around a Nim compilation issue 2019-03-25 01:22:44 +02: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
Ștefan Talpalaru
31590a79ec
Merge branch 'threads' 2019-01-17 19:24:50 +01:00
Bruno Škvorc
9d1f5dca3f
Create README.md 2019-01-14 18:07:01 +01:00
Ștefan Talpalaru
cca110adf2
add "--threads:on" to tests
and a "test" task for Nimble and the test binary to .gitignore
2019-01-09 23:21:31 +01:00
Zahary Karadjov
aaff7fac31 Add a useful debug helper 2018-12-19 12:30:00 +02:00
Zahary Karadjov
cb54254b77 Initial version (extracted from nim-serialization) 2018-12-17 23:49:42 +02:00