export every field of MemFile for more low level trickery; refs #9922
This commit is contained in:
parent
cc8ba356f9
commit
77a884f178
1 changed files with 5 additions and 4 deletions
|
|
@ -36,11 +36,12 @@ type
|
||||||
size*: int ## size of the memory mapped file
|
size*: int ## size of the memory mapped file
|
||||||
|
|
||||||
when defined(windows):
|
when defined(windows):
|
||||||
fHandle: Handle
|
fHandle*: Handle ## **Caution**: Windows specific public field to allow
|
||||||
mapHandle: Handle
|
## even more low level trickery.
|
||||||
wasOpened: bool ## only close if wasOpened
|
mapHandle*: Handle ## **Caution**: Windows specific public field.
|
||||||
|
wasOpened*: bool ## **Caution**: Windows specific public field.
|
||||||
else:
|
else:
|
||||||
handle: cint
|
handle*: cint ## **Caution**: Posix specific public field.
|
||||||
|
|
||||||
proc mapMem*(m: var MemFile, mode: FileMode = fmRead,
|
proc mapMem*(m: var MemFile, mode: FileMode = fmRead,
|
||||||
mappedSize = -1, offset = 0): pointer =
|
mappedSize = -1, offset = 0): pointer =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue