summary refs log tree commit diff stats
path: root/lib/pure/memfiles.nim
Commit message (Collapse)AuthorAgeFilesLines
* Bug fix: change non-fmRead file mode to set GENERIC_READ or GENERIC_WRITEJamesP2015-09-241-1/+2
| | | | | instead of GENERIC_ALL which on 64bit windows rasied an [OSError] exception
* change type of windows handles to HandleJamesP2015-09-241-3/+3
|
* fix wasOpened reference and set to false on closeJamesP2015-09-231-1/+2
|
* Add wasOpened flag for windows, so not attempt close when unopenedJamesP2015-09-221-1/+4
|
* Undo zero checkJamesP2015-09-221-1/+1
|
* bug fix: close() only unmapViewOfFile() when fHandle is valid.JamesP2015-09-121-1/+1
| | | | | Added extra test on windows close so if already closed it doesn't throw an exception.
* lib: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-041-5/+5
| | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
* Add note about what is included.Charles Blake2015-08-041-0/+3
|
* Use hyperlinks to refer to other procs.Charles Blake2015-08-041-6/+8
|
* Expand memSlices doc comment & use better example.Charles Blake2015-08-041-14/+27
| | | | Have lines() iterators docs point back to memSlices() for details.
* Spruce up doc comments as per dom96 suggestions.Charles Blake2015-08-031-7/+12
|
* toString --> `$`.Charles Blake2015-08-031-1/+1
|
* Try to get examples to render right as HTML.Charles Blake2015-08-021-1/+5
|
* Add some example code blocks.Charles Blake2015-08-021-2/+10
|
* Quote the \ in doc comments.Charles Blake2015-08-021-5/+5
|
* Add some little one-line doc comment of MemSlice.Charles Blake2015-08-021-1/+1
|
* Add top of module comment. Re-order definitions toCharles Blake2015-08-021-6/+36
| | | | | | | | | | type, then converter, then 3 iterators lowest- to highest-level (also fastest to slowest) including a new intermediate iterator lines(MemFile, buffer) that is more like readLine(File) in case that helps anyone port code. Add doc comments. Also have toString just use newString+c_memcpy instead of currently fragile toNimStr which Araq wants a separate PR for.
* Nix unchecked which has no semantics for objects.Charles Blake2015-08-021-1/+1
|
* cstring->pointer in MemSlice to make consistent with MemFile andCharles Blake2015-07-291-8/+8
| | | | | also to make more clear the care required to use MemSlice instances. (E.g., memXXX functions rather than strXXX functions).
* Remove NUL termination unneeded post toNimStr fix.Charles Blake2015-07-281-1/+0
|
* Rename [rR]ecord->[mM]emSlice, rec->ms, End->ending. Also update some comments.Charles Blake2015-07-261-20/+20
|
* Beg->data, Len->size to address Varriount's issue. I was unaware ofCharles Blake2015-07-241-11/+11
| | | | lower case members as a strict style convention.
* Add MemFile text interface factored so users can optionally skip Nim stringCharles Blake2015-07-241-0/+32
| | | | | | construction (e.g. to filter many lines out before building strings). Only Windows and/or Unix line endings are supported by default, though fiddling with delim/eat arguments can probably support archaic MacOS9 files.
* lib/pure/e-o - Dropped 'T' from typespdw2015-06-041-1/+1
|
* Happy new year!Guillaume Gelin2015-01-061-1/+1
|
* Nimrod renamed to NimAraq2014-08-281-1/+1
|
* big renameAraq2014-08-281-2/+2
|
* big renameAraq2014-08-271-16/+17
|
* renamefestAraq2014-08-231-2/+2
|
* Revert "Do not automatically use MAP_POPULATE for opening mmap files."Nick Greenfield2014-07-231-9/+3
| | | | | | | This reverts commit cba75db4e36b3af0d39b5717141a971e6d558554. The prior commit yields a compiler error 'error: lvalue required as left operand of assignment; MAP_POPULATE = ((int) 0);'. So for now this branch *always* adds MAP_POPULATE when using the open and mapMem procs.
* Do not automatically use MAP_POPULATE for opening mmap files.Nick Greenfield2014-07-231-3/+9
| | | | | Adds use_map_populate keyword to memfiles.open and memfiles.mapMem to govern MAP_POPULATE use. This is set to false by default.
* Add automatic MAP_POPULATE flag for opening read_only (MAP_PRIVATE) and ↵Nick Greenfield2014-07-231-2/+2
| | | | shared (MAP_SHARED) mmap files.
* Update posix open() call to incl. permissionsboydgreenfield2014-05-051-1/+4
| | | This explicitly grants user read/write access to newly-created mmap files. Previously, on some systems files would be created but could not be re-opened as the user lacked sufficient permissions.
* Clarify newFileSize & mappedSize params in memfiles.open() docsboydgreenfield2014-05-051-3/+16
|
* added mapMem/unmapMem to memfiles; untestedAraq2014-03-221-4/+41
|
* case consistency for linuxAraq2013-12-291-7/+7
|
* case consistency part 4Araq2013-12-271-19/+19
|
* Fixed OSError + recvLine deprecation warnings.Dominik Picheta2013-06-271-15/+19
|
* memfiles compiles again on windowsAraq2013-05-201-3/+1
|
* win64 is a supported target; bugfix: nimrod c -r on windows; stdlib uses ↵Araq2012-03-041-10/+20
| | | | wide char versions of the WinAPI
* year 2012 for most copyright headersAraq2012-01-021-1/+1
|
* memfiles now uses winlean; changed the interface to raise EOSAraq2011-11-051-63/+50
|
* memory-mapped files for posix and windowsZahary Karadjov2011-11-041-30/+173
|
* rod files: next trivial examples workingAraq2011-10-221-1/+1
|
* preparations for proper memmap'ed filesAraq2011-10-221-0/+51