diff options
author | Araq <rumpf_a@web.de> | 2018-12-12 12:03:57 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-12-12 12:03:57 +0100 |
commit | 77a884f178316155d348808c2e3255a17edef16b (patch) | |
tree | 9025dde5ba85e2300096d9c77ce04ac92eed108a /lib | |
parent | cc8ba356f9886d1d0bd8288e5623ff6f9e52b698 (diff) | |
download | Nim-77a884f178316155d348808c2e3255a17edef16b.tar.gz |
export every field of MemFile for more low level trickery; refs #9922
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/memfiles.nim | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/pure/memfiles.nim b/lib/pure/memfiles.nim index d2beb629a..f04cf8fee 100644 --- a/lib/pure/memfiles.nim +++ b/lib/pure/memfiles.nim @@ -36,11 +36,12 @@ type size*: int ## size of the memory mapped file when defined(windows): - fHandle: Handle - mapHandle: Handle - wasOpened: bool ## only close if wasOpened + fHandle*: Handle ## **Caution**: Windows specific public field to allow + ## even more low level trickery. + mapHandle*: Handle ## **Caution**: Windows specific public field. + wasOpened*: bool ## **Caution**: Windows specific public field. else: - handle: cint + handle*: cint ## **Caution**: Posix specific public field. proc mapMem*(m: var MemFile, mode: FileMode = fmRead, mappedSize = -1, offset = 0): pointer = |