This class represents a memory mapped file. It is based on boost::iostreams::mapped_file.
Synopsis
Declared in <llvm/Support/FileSystem.h>
class mapped_file_region;
Enums
Name |
Description |
Access mode for a mapped file region. |
Member Functions
Name |
Description |
|
Constructors |
|
Unmap the region on destruction. |
Assignment operators |
|
Get a const view of the data. Modifying this memory has undefined behavior. |
|
Return a mutable pointer to the start of the mapped region. |
|
Advise the OS that the mapped pages will not be needed soon. |
|
Advise that access to the mapping will be random. |
|
Return the size in bytes of the mapped region. |
|
Write changes to disk and synchronize. Equivalent to POSIX msync. This will wait for flushing memory‐mapped region back to disk and can be very slow. |
|
Unmap. |
|
Advise that the mapped pages will be needed soon. |
|
Check if this is a valid mapping. |