Ludovic Chenut
b42daf41d8
Replace unsafeAddr by baseAddr ( #32 )
...
* Replace unsafeAddr xxx[0] by baseAddr(xxx)
* Fix styleCheck:usages
* Update CI conf
* Fix charsToBytes
* Fix outputs write
* Add test
2022-11-24 12:55:42 +01:00
Jacek Sieka
5ec974ed1a
Normalise nimble ( #36 )
...
* normalise nimble file, ci / deprecation fixes
* other deprecations
2022-11-23 16:27:20 +01:00
Miran
6112432b3a
move -d:nimRawSetjmp to config.nims ( #30 )
...
Refs https://github.com/status-im/nimbus-build-system/issues/44
2022-09-17 08:53:56 +03:00
Jacek Sieka
5f9fd4e5c5
reduce test dependencies ( #34 )
2022-09-10 07:25:22 +02:00
Jacek Sieka
cf9074b2f4
add test for runways
2022-04-04 13:12:59 +02:00
Dustin Brody
9a4a25e3e0
fix 32-bit timer overflow and typo in base64 error message
2022-03-17 21:13:32 +00:00
Dustin Brody
1a85b3d50b
remove all_tests binary
2022-03-17 08:59:59 +00:00
Zahary Karadjov
37a183153c
Fix the CI; Improve docs
2022-01-22 20:01:20 +02:00
Zahary Karadjov
5a7d1d196f
Add OutputStream.getWritableBytes(n)
2022-01-22 19:02:41 +02:00
Zahary Karadjov
94fa3fab8c
Review 371e60b17c and apply fixes
2022-01-22 16:19:56 +02:00
Ștefan Talpalaru
371e60b17c
CI: test with multiple Nim versions ( #23 )
...
* CI: test with multiple Nim versions
* fix readIntoExImpl() when premature EOF is triggered on some Windows versions
* also fix some unrelated pointer math
2022-01-05 23:22:53 +01:00
Jacek Sieka
1f62235d4f
Enable --styleCheck:usages
2021-12-07 00:32:45 +02:00
Zahary Karadjov
1b561a9e71
Add support for writing cstrings
2021-11-04 11:54:55 +02:00
Jacek Sieka
3a0ab42573
Don't import/export chronos by default ( #20 )
...
Chronos support is optional and should not have to be imported in order
to use faststreams for non-async use cases, as doing so pollutes the
global namespace and slows down compilation.
`async` support must now explicitly be enabled with
-d:async_backend=chronos|asyncdispatch
2021-08-20 14:10:26 +03:00
Ștefan Talpalaru
5eb7fd0c90
move to unittest2
...
to fix a clash with testutils
2021-05-28 08:29:18 +03:00
andri lim
367cb55eef
fix memFileInput.pos return negative value ( #16 )
2021-02-18 17:56:17 +02:00
jangko
91d119fdb0
fixes broken test
2021-01-07 12:12:55 +07:00
Zahary Karadjov
92205d608b
Fix #14 (don't use alloca)
2021-01-06 21:20:27 +02:00
Zahary Karadjov
81c24860e2
Bugfix: totalUnconsumedBytes works properly within withReadableRange blocks
2020-05-29 16:08:14 +03:00
Zahary Karadjov
5d7cad792f
Add tests for delayed var-size writes
2020-05-25 11:33:56 +03:00
Zahary Karadjov
442ad53b00
Implement the full behavior of withReadableRange; close #12
2020-05-25 02:26:18 +03:00
John Dupuy
5e17ffae3a
Fixed output for writeText(s,float) and added unit test
2020-05-15 19:48:28 +03:00
Zahary Karadjov
dd63bbfd1c
Better name and docs for the 'nonBlockingReads' facility
2020-05-07 12:12:46 +03:00
Zahary Karadjov
ec5c3af313
Implement InputStream.nonBlockingReads and document it
2020-05-07 00:17:09 +03:00
Zahary Karadjov
18f9488bee
Expand the documentation; Clean up debugging code; Enable all tests
2020-05-05 19:20:25 +03:00
Zahary Karadjov
cb36a6d4db
Implement the async pipelines and fsMultiSync
2020-05-05 02:49:39 +03:00
Zahary Karadjov
bf930b6f1b
Implement readInto and read(n)
2020-05-03 04:35:34 +03:00
Zahary Karadjov
b24300bd3f
Address review comments; Add documentation; Shared buffering mechanism for input and output streams
2020-05-01 19:12:58 +03:00
Zahary Karadjov
69fc4e24ee
Initial work on pipelines
2020-04-14 16:34:39 +03:00
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
Jacek Sieka
5135173f60
std_shims -> stew
2019-07-07 11:44:59 +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
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
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
cb54254b77
Initial version (extracted from nim-serialization)
2018-12-17 23:49:42 +02:00