home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / os2 / programm / 7953 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  1.4 KB

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