Instances of this class provide access to memory-mapped files.
More...
#include <miktex/Core/MemoryMappedFile.h>
Instances of this class provide access to memory-mapped files.
◆ Close()
virtual void MiKTeX::Core::MemoryMappedFile::Close |
( |
| ) |
|
|
pure virtual |
◆ Create()
◆ Flush()
virtual void MiKTeX::Core::MemoryMappedFile::Flush |
( |
| ) |
|
|
pure virtual |
Flushes the memory-mapped file to disk.
◆ GetName()
virtual std::string MiKTeX::Core::MemoryMappedFile::GetName |
( |
| ) |
const |
|
pure virtual |
Gets the name of the file mapping.
- Returns
- Returns the name of the file mapping
◆ GetPtr()
virtual void * MiKTeX::Core::MemoryMappedFile::GetPtr |
( |
| ) |
const |
|
pure virtual |
Gets a pointer to the block of memory.
- Returns
- Returns a pointer to the block of memory.
◆ GetSize()
virtual std::size_t MiKTeX::Core::MemoryMappedFile::GetSize |
( |
| ) |
const |
|
pure virtual |
Gets the size of the memory-mapped file.
- Returns
- Returns the size (in bytes).
◆ Open()
Maps a file into memory.
- Parameters
-
path | The file system path to the file to be mapped. |
readWrite | Indicates whether the file should be opened for reading and writing. |
- Returns
- Returns a pointer to the block of memory.
◆ Resize()
virtual void * MiKTeX::Core::MemoryMappedFile::Resize |
( |
std::size_t |
newSize | ) |
|
|
pure virtual |
Resizes the memory-mapped file.
- Parameters
-
newSize | The new size of the memory-mapped file. |
- Returns
- Returns a pointer to the block of memory.
The documentation for this class was generated from the following file: