Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.IO.MemoryMappedFiles.MemoryMappedFile Class Reference

Public Member Functions

MemoryMappedViewStream CreateViewStream ()
 
MemoryMappedViewStream CreateViewStream (long offset, long size)
 
MemoryMappedViewStream CreateViewStream (long offset, long size, MemoryMappedFileAccess access)
 
MemoryMappedViewAccessor CreateViewAccessor ()
 
MemoryMappedViewAccessor CreateViewAccessor (long offset, long size)
 
MemoryMappedViewAccessor CreateViewAccessor (long offset, long size, MemoryMappedFileAccess access)
 
void Dispose ()
 

Static Public Member Functions

static MemoryMappedFile OpenExisting (string mapName)
 
static MemoryMappedFile OpenExisting (string mapName, MemoryMappedFileRights desiredAccessRights)
 
static MemoryMappedFile OpenExisting (string mapName, MemoryMappedFileRights desiredAccessRights, HandleInheritability inheritability)
 
static MemoryMappedFile CreateFromFile (string path)
 
static MemoryMappedFile CreateFromFile (string path, FileMode mode)
 
static MemoryMappedFile CreateFromFile (string path, FileMode mode, string? mapName)
 
static MemoryMappedFile CreateFromFile (string path, FileMode mode, string? mapName, long capacity)
 
static MemoryMappedFile CreateFromFile (string path, FileMode mode, string? mapName, long capacity, MemoryMappedFileAccess access)
 
static MemoryMappedFile CreateFromFile (FileStream fileStream, string? mapName, long capacity, MemoryMappedFileAccess access, HandleInheritability inheritability, bool leaveOpen)
 
static MemoryMappedFile CreateNew (string? mapName, long capacity)
 
static MemoryMappedFile CreateNew (string? mapName, long capacity, MemoryMappedFileAccess access)
 
static MemoryMappedFile CreateNew (string? mapName, long capacity, MemoryMappedFileAccess access, MemoryMappedFileOptions options, HandleInheritability inheritability)
 
static MemoryMappedFile CreateOrOpen (string mapName, long capacity)
 
static MemoryMappedFile CreateOrOpen (string mapName, long capacity, MemoryMappedFileAccess access)
 
static MemoryMappedFile CreateOrOpen (string mapName, long capacity, MemoryMappedFileAccess access, MemoryMappedFileOptions options, HandleInheritability inheritability)
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Static Package Functions

static FileAccess GetFileAccess (MemoryMappedFileAccess access)
 
static int GetFileMapAccess (MemoryMappedFileAccess access)
 
static int GetPageAccess (MemoryMappedFileAccess access)
 

Properties

SafeMemoryMappedFileHandle SafeMemoryMappedFileHandle [get]
 

Private Member Functions

 MemoryMappedFile (SafeMemoryMappedFileHandle handle)
 
 MemoryMappedFile (SafeMemoryMappedFileHandle handle, FileStream fileStream, bool leaveOpen)
 

Static Private Member Functions

static void CleanupFile (FileStream fileStream, bool existed, string path)
 
static void VerifyMemoryMappedFileAccess (MemoryMappedFileAccess access, long capacity, FileStream fileStream)
 
static SafeMemoryMappedFileHandle CreateCore (FileStream fileStream, string mapName, HandleInheritability inheritability, MemoryMappedFileAccess access, MemoryMappedFileOptions options, long capacity)
 
static SafeMemoryMappedFileHandle OpenCore (string mapName, HandleInheritability inheritability, MemoryMappedFileAccess access, bool createOrOpen)
 
static SafeMemoryMappedFileHandle OpenCore (string mapName, HandleInheritability inheritability, MemoryMappedFileRights rights, bool createOrOpen)
 
static SafeMemoryMappedFileHandle CreateOrOpenCore (string mapName, HandleInheritability inheritability, MemoryMappedFileAccess access, MemoryMappedFileOptions options, long capacity)
 
static int GetFileMapAccess (MemoryMappedFileRights rights)
 
static SafeMemoryMappedFileHandle OpenCore (string mapName, HandleInheritability inheritability, int desiredAccessRights, bool createOrOpen)
 
static unsafe global::Interop.Kernel32.SECURITY_ATTRIBUTES GetSecAttrs (HandleInheritability inheritability)
 

Private Attributes

readonly SafeMemoryMappedFileHandle _handle
 
readonly bool _leaveOpen
 
readonly FileStream _fileStream
 

Detailed Description

Definition at line 8 of file MemoryMappedFile.cs.


The documentation for this class was generated from the following file: