Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #3087

Re: how to save a file to memory rather to disk?

From Cholo Lennon <chololennon@hotmail.com>
Newsgroups comp.lang.c++
Subject Re: how to save a file to memory rather to disk?
Date 2011-04-04 14:20 -0300
Organization Aioe.org NNTP Server
Message-ID <incukc$vpg$1@speranza.aioe.org> (permalink)
References <2b991e52-8753-4642-849c-c3db5268144c@i35g2000prd.googlegroups.com> <v991p65fuemts321rshfbp30pqd34ctj0a@4ax.com> <12ccf991-9323-4a9e-901c-e8325a962103@u8g2000yqh.googlegroups.com> <slrnip1l1c.f4c.grahn+nntp@frailea.sa.invalid> <94eff8c8-b379-4e23-9a12-9d15b97f720f@z3g2000prz.googlegroups.com>

Show all headers | View raw


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

Back to comp.lang.c++ | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

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

csiph-web