Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Reflection.Internal.StreamMemoryBlockProvider Class Referencesealed

Public Member Functions

 StreamMemoryBlockProvider (Stream stream, long imageStart, int imageSize, bool isFileStream, bool leaveOpen)
 
override Stream GetStream (out StreamConstraints constraints)
 
AbstractMemoryBlock GetMemoryBlock ()
 
AbstractMemoryBlock GetMemoryBlock (int start, int size)
 
void Dispose ()
 

Protected Member Functions

override void Dispose (bool disposing)
 
override AbstractMemoryBlock GetMemoryBlockImpl (int start, int size)
 

Static Package Functions

static unsafe NativeHeapMemoryBlock ReadMemoryBlockNoLock (Stream stream, bool isFileStream, long start, int size)
 

Static Package Attributes

const int MemoryMapThreshold = 16384
 

Properties

override int Size [get]
 

Private Member Functions

bool TryCreateMemoryMappedFileBlock (long start, int size, [NotNullWhen(true)] out MemoryMappedFileBlock block)
 

Private Attributes

Stream _stream
 
readonly object _streamGuard
 
readonly bool _leaveOpen
 
bool _useMemoryMap
 
readonly bool _isFileStream
 
readonly long _imageStart
 
readonly int _imageSize
 
IDisposable _lazyMemoryMap
 

Detailed Description

Definition at line 8 of file StreamMemoryBlockProvider.cs.


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