What is the Memory Mapped File Class?
-
- Earned a small fee
- Posts: 14
- Joined: Thu Apr 07, 2005 3:40 pm
What is the Memory Mapped File Class?
I searched for such a class with no luck.
-
- Earned a small fee
- Posts: 14
- Joined: Thu Apr 07, 2005 3:40 pm
Hi!
For that purpose try using wxMemoryFSHandler with a wxFile. There is no wxMemoryFile class as far as I remember.
For that purpose try using wxMemoryFSHandler with a wxFile. There is no wxMemoryFile class as far as I remember.
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4
"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4
"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
- Ryan Norton
- wxWorld Domination!
- Posts: 1319
- Joined: Mon Aug 30, 2004 6:01 pm
-
- Earned a small fee
- Posts: 14
- Joined: Thu Apr 07, 2005 3:40 pm
Well, I'll just quote the docs...
wxMemoryFSHandler::AddFile
wxMemoryFSHandler::AddFile
Add file to list of files stored in memory. Stored data (bitmap, text or raw data) will be copied into private memory stream and available under name "memory:" + filename.
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4
"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4
"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
- Ryan Norton
- wxWorld Domination!
- Posts: 1319
- Joined: Mon Aug 30, 2004 6:01 pm
All a memory mapped file is usingupCASE wrote:Well, I'll just quote the docs...
wxMemoryFSHandler::AddFileAdd file to list of files stored in memory. Stored data (bitmap, text or raw data) will be copied into private memory stream and available under name "memory:" + filename.
CreateFileMapping
MapViewOfFile
UnmapViewOfFile
CloseHandle
on Win32
and mmap and munmap on POSIX (OSX I think too).
[Mostly retired moderator, still check in to clean up some stuff]
-
- Earned a small fee
- Posts: 14
- Joined: Thu Apr 07, 2005 3:40 pm