Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Memory Mapped Files
Re: Memory Mapped Files [message #39813 is a reply to message #39808] Thu, 02 May 2013 20:48 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1791
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi crydev,

crydev wrote on Thu, 02 May 2013 09:38

write data from a list/vector to the memory

Is that really what you wanted to write? If yes, then copying data from Vector to other location in memory can be as simple as calling memcpy(dest, vector.Begin(), count*itemsize).

If you actually meant copying from/to file on disk, then Streams are probably the easiest way to go. AFAIK there is currently nothing using memory mapped files in U++. But to use it for storing, it should be just a simple call to mmap (on Linux) followed by memcpy.

Best regards,
Honza
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: About RS232
Next Topic: [FIXED] Memory leak in FreeType.
Goto Forum:
  


Current Time: Fri Jun 13 21:35:54 CEST 2025

Total time taken to generate the page: 0.04268 seconds