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
Dustin Brody
07184af965
use ptr byte cast
2022-03-17 09:30:44 +00:00
Dustin Brody
e238632e57
don't even notionally access element 0 of 0-length openArray
2022-03-17 09:30:13 +00:00
Zahary Karadjov
94fa3fab8c
Review 371e60b17c and apply fixes
2022-01-22 16:19:56 +02:00
Zahary Karadjov
a3dfcb3c77
Handle page extension properly in readInto
2022-01-20 18:24:35 +02:00
Ivan Yonchovski
eb2ad0c441
Added overload for fileInput
...
- Make it symetrical to `fileOutput`
2022-01-18 17:57:49 +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
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
Zahary Karadjov
99e89eb1e5
Allow calling stream.read(0)
2021-02-18 23:15:59 +02: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
87309f3120
Don't raise OSError from memFileInput()
2020-08-02 20:16:47 +03:00
Zahary Karadjov
5df69fc696
Add asynctools adapter
2020-06-08 22:37:45 +03:00
Zahary Karadjov
81c24860e2
Bugfix: totalUnconsumedBytes works properly within withReadableRange blocks
2020-05-29 16:08:14 +03:00
Zahary Karadjov
4c5464a7e0
Allow withReadableRange(0)
2020-05-25 04:04:25 +03:00
Zahary Karadjov
5437bba3ce
Another fix for unsafe streams
2020-05-25 03:59:31 +03:00
Zahary Karadjov
0ca39dcd33
Quick fix for using withReadableRange with unsafe inputs
2020-05-25 03:57:18 +03:00
Zahary Karadjov
442ad53b00
Implement the full behavior of withReadableRange; close #12
2020-05-25 02:26:18 +03:00
Zahary Karadjov
dd63bbfd1c
Better name and docs for the 'nonBlockingReads' facility
2020-05-07 12:12:46 +03:00
Zahary Karadjov
8b863f7798
Slightly more flexible pipelines (to be documented)
2020-05-07 01:18:58 +03:00
Zahary Karadjov
ec5c3af313
Implement InputStream.nonBlockingReads and document it
2020-05-07 00:17:09 +03:00
Zahary Karadjov
fc76250d02
Implement timeoutToNextByte
2020-05-06 23:12:12 +03:00
Zahary Karadjov
65b43d9e38
Move stuff around; Add some missing overloads
2020-05-05 23:57:27 +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