Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.IO.MemoryMappedFiles.MemoryMappedViewAccessor Class Referencesealed

Public Member Functions

void Flush ()
 
void Dispose ()
 
bool ReadBoolean (long position)
 
unsafe byte ReadByte (long position)
 
char ReadChar (long position)
 
unsafe short ReadInt16 (long position)
 
unsafe int ReadInt32 (long position)
 
unsafe long ReadInt64 (long position)
 
unsafe decimal ReadDecimal (long position)
 
float ReadSingle (long position)
 
double ReadDouble (long position)
 
sbyte ReadSByte (long position)
 
ushort ReadUInt16 (long position)
 
uint ReadUInt32 (long position)
 
ulong ReadUInt64 (long position)
 
void Read< T > (long position, out T structure)
 
int ReadArray< T > (long position, T[] array, int offset, int count)
 
void Write (long position, bool value)
 
unsafe void Write (long position, byte value)
 
void Write (long position, char value)
 
unsafe void Write (long position, short value)
 
unsafe void Write (long position, int value)
 
unsafe void Write (long position, long value)
 
unsafe void Write (long position, decimal value)
 
void Write (long position, float value)
 
void Write (long position, double value)
 
void Write (long position, sbyte value)
 
void Write (long position, ushort value)
 
void Write (long position, uint value)
 
void Write (long position, ulong value)
 
void Write< T > (long position, ref T structure)
 
void WriteArray< T > (long position, T[] array, int offset, int count)
 

Protected Member Functions

override void Dispose (bool disposing)
 
unsafe void Initialize (SafeBuffer buffer, long offset, long capacity, FileAccess access)
 

Package Functions

 MemoryMappedViewAccessor (MemoryMappedView view)
 

Properties

SafeMemoryMappedViewHandle SafeMemoryMappedViewHandle [get]
 
long PointerOffset [get]
 
long Capacity [get]
 
bool CanRead [get]
 
bool CanWrite [get]
 
bool IsOpen [get]
 

Private Member Functions

void EnsureSafeToRead (long position, int sizeOfType)
 
void EnsureSafeToWrite (long position, int sizeOfType)
 

Private Attributes

readonly MemoryMappedView _view
 
SafeBuffer _buffer
 
long _offset
 
long _capacity
 
FileAccess _access
 
bool _isOpen
 
bool _canRead
 
bool _canWrite
 

Detailed Description

Definition at line 5 of file MemoryMappedViewAccessor.cs.


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