Top "Memory-mapped-files" questions

A file whose contents are mapped in virtual memory.

Java: Memory efficient ByteArrayOutputStream

I've got a 40MB file in the disk and I need to "map" it into memory using a byte array. …

java bytearray memory-mapped-files bytearrayoutputstream
When to use memory-mapped files?

I have an application that receives chunks of data over the network, and writes these to disk. Once all chunks …

c# memory-mapped-files
How to unmap a file from memory mapped using FileChannel in java?

I am mapping a file("sample.txt") to memory using FileChannel.map() and then closing the channel using fc.close(). …

java memory-mapped-files
How to allocate and free aligned memory in C

How do you allocate memory that's aligned to a specific boundary in C (e.g., cache line boundary)? I'm looking …

c alignment memory-mapped-files memory-alignment
Java NIO - Memory mapped files

I recently came across this article which provided a nice intro to memory mapped files and how it can be …

java buffer nio channel memory-mapped-files
How big can a memory-mapped file be?

What limits the size of a memory-mapped file? I know it can't be bigger than the largest continuous chunk of …

mmap memory-mapped-files
Posix shared memory vs mapped files

Having learnt a bit about the subject, can anyone tell, what is the real difference between POSIX shared memory (shm_…

posix shared-memory memory-mapped-files
Write string data to MemoryMappedFile

I am following this tutorial here I am having a hard time figuring out how to get a string "THIS …

c# .net memory-mapped-files
Read all contents of memory mapped file or Memory Mapped View Accessor without knowing the size of it

I need something similar to ReadToEnd or ReadAllBytes to read all of the contents of the MemoryMappedFile using the MappedViewAccessor …

c# .net ipc accessor memory-mapped-files
Transferring data through a memory-mapped file using Win32/WINAPI

I need to transfer some data - char buffer[100000]; - to a child process which is started by me. Right …

c++ windows winapi memory-mapped-files