Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #2786 > unrolled thread
| Started by | puppi <fabricio.puppi@gmail.com> |
|---|---|
| First post | 2011-03-29 11:51 -0700 |
| Last post | 2011-04-04 14:20 -0300 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.c++
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: how to save a file to memory rather to disk? puppi <fabricio.puppi@gmail.com> - 2011-03-29 11:51 -0700
Re: how to save a file to memory rather to disk? Cholo Lennon <chololennon@hotmail.com> - 2011-04-04 14:20 -0300
| From | puppi <fabricio.puppi@gmail.com> |
|---|---|
| Date | 2011-03-29 11:51 -0700 |
| Subject | Re: how to save a file to memory rather to disk? |
| Message-ID | <94eff8c8-b379-4e23-9a12-9d15b97f720f@z3g2000prz.googlegroups.com> |
You could try using shared memory, by looking into the functions mmap() and shmget(). However, note that it's quite a low level approach. Also, they are not Standard C++ functions, they are POSIX's. If you have specific OSs in mind, such as Linux, then it's an alternative. Just don't expect the portability to be the same as using the filesystem.
[toc] | [next] | [standalone]
| From | Cholo Lennon <chololennon@hotmail.com> |
|---|---|
| Date | 2011-04-04 14:20 -0300 |
| Message-ID | <incukc$vpg$1@speranza.aioe.org> |
| In reply to | #2786 |
On 29/03/2011 15:51, puppi wrote: > You could try using shared memory, by looking into the functions > mmap() and shmget(). However, note that it's quite a low level > approach. Also, they are not Standard C++ functions, they are POSIX's. > If you have specific OSs in mind, such as Linux, then it's an > alternative. Just don't expect the portability to be the same as using > the filesystem. The OP could try using Boost.Interprocess library if he/she wants to use a portable shared memory approach. Regards -- Cholo Lennon Bs.As. ARG
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.c++
csiph-web