home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!inews.Intel.COM!imutm1.de.intel.com!gold.sub.org!jonas.gold.sub.org!rommel
- From: rommel@jonas.gold.sub.org (Kai Uwe Rommel)
- Newsgroups: comp.os.os2.programmer
- Subject: Re: Does OS/2 support Memory Mapped Files ?
- Message-ID: <727805912rommel.root@jonas.gold.sub.org>
- Date: 23 Jan 93 16:18:32 GMT
- References: <C17Kwo.7E7@techbook.com> <1jo2g2INNs9e@neuro.usc.edu>
- Sender: root@jonas.gold.sub.org
- Organization: Private
- Lines: 24
-
- In article <1jo2g2INNs9e@neuro.usc.edu> merlin@neuro.usc.edu (merlin) writes:
- >Does OS/2 2.1 beta support memory mapped files for user processes?
-
- Not as far as I know.
-
- >I'd like to access a file of 3D brain map data as though it is one
- >large array in memory. I don't want to read those portions of the
- >file which I don't touch.
-
- If you are using C++, you could write a MemoryMappedArray class that
- overloads the array subscript [] operator (as well as the
- constructor/destructor for opening/closing the file) appropriately.
- You will not gain efficiency (that would require memory mapped file
- support in the kernl), but an easy programming interface.
-
- Kai Uwe Rommel
-
- --
- /* Kai Uwe Rommel Muenchen, Germany *
- * rommel@jonas.gold.sub.org Phone +49 89 723 4101 *
- * rommel@informatik.tu-muenchen.de Fax +49 89 723 7889 */
-
- DOS ... is still a real mode only non-reentrant interrupt
- handler, and always will be. -Russell Williams
-