Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge branch 'araq-devel' of github.com:nim-lang/Nim into araq-devel | Andreas Rumpf | 2018-07-06 | 1 | -2/+3 |
|\ | |||||
| * | make tmemfile2 work again | Araq | 2018-07-06 | 1 | -2/+3 |
| | | |||||
* | | make tests green again | Andreas Rumpf | 2018-07-06 | 1 | -1/+1 |
|/ | |||||
* | Add MemMapFileStream. Fixes in memFiles. (#7944) | Dmitry Atamanov | 2018-06-14 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add MemMapFileStream * Added tests * Fixed bug in memfiles (zero index for string) * Added flush to changelog * Attempt to fix Win's nuances * Fix attempt to fix * Continue... * And again... * Reworked tests (all for win on Win) * Fixes in flush (Win) * Replace fn vars to consts * Added the attempts parameter to the flush * Replace while to for * Move to memfiles * Use Natural instead of uint * Better error messages for append mode. Handle specific cases. | ||||
* | memfiles: enable test; refs #6361 | Araq | 2018-01-03 | 1 | -2/+0 |
| | |||||
* | Fixes incorrect fd==0 test on Unix; Conserves handles by default. (#5512) | c-blake | 2017-03-12 | 1 | -1/+1 |
| | | | | | | | | | | | | | | * Fix 2 problems. First, 0 is a valid fd on Unix (easily gotten if user first closes all fds and then starts using memfiles). Use -1 instead for an invalid fd. Second, it is best practice to conserve open fds on Unix and file handles on Windows. These handles are not needed unless the user wants to remap the memory with ``mapMem`` (or a hypothetical future ``proc resize``). Adding a new bool param ``allowRemap=false`` to ``memfiles.open`` solves this cleanly in a "mostly" backward compatible way. This is only "mostly" because the default ``false`` case does not keep unneeded resources allocated, but that most sensible default means that any ``mapMem`` callers need to fix all their open calls to have allowRemap=true, as this PR also does for tmemfiles2.nim. * Include backwards compatibility note. | ||||
* | fixes #2473; cleanup of some tests | Araq | 2015-09-30 | 1 | -0/+2 |
| | |||||
* | minor fix - remove comments from discard section | JamesP | 2015-09-27 | 1 | -1/+0 |
| | | | | so koch test doesn't complain | ||||
* | add memfiles test of create/read/write data | JamesP | 2015-09-24 | 1 | -0/+38 |