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   |
|
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
|
|
|
Goto Forum:
Current Time: Fri Jun 13 21:35:54 CEST 2025
Total time taken to generate the page: 0.04268 seconds
|