terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
System.IO.FileStream Class Reference
+ Inheritance diagram for System.IO.FileStream:

Classes

class  ReadDelegate
 
class  WriteDelegate
 

Public Member Functions

 FileStream (IntPtr handle, FileAccess access, bool ownsHandle, int bufferSize)
 
 FileStream (string path, FileMode mode)
 
 FileStream (string path, FileMode mode, FileAccess access)
 
 FileStream (string path, FileMode mode, FileAccess access, FileShare share)
 
 FileStream (string path, FileMode mode, FileAccess access, FileShare share, int bufferSize)
 
 FileStream (string path, FileMode mode, FileAccess access, FileShare share, int bufferSize, bool useAsync)
 
 FileStream (string path, FileMode mode, FileAccess access, FileShare share, int bufferSize, FileOptions options)
 
override int ReadByte ()
 
override void WriteByte (byte value)
 
override int Read ([In][Out] byte[] array, int offset, int count)
 
override IAsyncResult BeginRead (byte[] array, int offset, int numBytes, AsyncCallback userCallback, object stateObject)
 
override int EndRead (IAsyncResult asyncResult)
 
override void Write (byte[] array, int offset, int count)
 
override IAsyncResult BeginWrite (byte[] array, int offset, int numBytes, AsyncCallback userCallback, object stateObject)
 
override void EndWrite (IAsyncResult asyncResult)
 
override long Seek (long offset, SeekOrigin origin)
 
override void SetLength (long value)
 
override void Flush ()
 
override Task FlushAsync (CancellationToken cancellationToken)
 
override Task< int > ReadAsync (byte[] buffer, int offset, int count, CancellationToken cancellationToken)
 
override Task WriteAsync (byte[] buffer, int offset, int count, CancellationToken cancellationToken)
 
void CopyTo (Stream destination)
 
virtual void CopyTo (Stream destination, int bufferSize)
 
virtual void Close ()
 
void Dispose ()
 
Task< int > ReadAsync (byte[] buffer, int offset, int count)
 
virtual ValueTask< int > ReadAsync (Memory< byte > buffer, [Optional] CancellationToken cancellationToken)
 
Task WriteAsync (byte[] buffer, int offset, int count)
 
virtual ValueTask WriteAsync (ReadOnlyMemory< byte > buffer, [Optional] CancellationToken cancellationToken)
 
virtual int Read (Span< byte > buffer)
 
virtual void Write (ReadOnlySpan< byte > buffer)
 
virtual ObjRef CreateObjRef (Type requestedType)
 
virtual object InitializeLifetimeService ()
 

Static Public Attributes

static readonly Stream Null
 

Protected Member Functions

override void Finalize ()
 
override void Dispose (bool disposing)
 

Package Functions

 FileStream (IntPtr handle, FileAccess access, bool ownsHandle, int bufferSize, bool isAsync, bool isConsoleWrapper)
 
 FileStream (string path, FileMode mode, FileAccess access, FileShare share, int bufferSize, bool isAsync, bool anonymous)
 
 FileStream (string path, FileMode mode, FileAccess access, FileShare share, int bufferSize, bool anonymous, FileOptions options)
 
SemaphoreSlim EnsureAsyncActiveSemaphoreInitialized ()
 
IAsyncResult BeginReadInternal (byte[] buffer, int offset, int count, AsyncCallback callback, object state, bool serializeAsynchronously, bool apm)
 
IAsyncResult BeginWriteInternal (byte[] buffer, int offset, int count, AsyncCallback callback, object state, bool serializeAsynchronously, bool apm)
 
IAsyncResult BlockingBeginRead (byte[] buffer, int offset, int count, AsyncCallback callback, object state)
 
IAsyncResult BlockingBeginWrite (byte[] buffer, int offset, int count, AsyncCallback callback, object state)
 

Static Package Functions

static int BlockingEndRead (IAsyncResult asyncResult)
 
static void BlockingEndWrite (IAsyncResult asyncResult)
 
static ValueTask< int >< ReadAsyncg__FinishReadAsync (Task< int > readTask, byte[] localBuffer, Memory< byte > localDestination)
 

Properties

override bool CanRead [get]
 
override bool CanWrite [get]
 
override bool CanSeek [get]
 
override long Length [get]
 
override long Position [get, set]
 
virtual SafeFileHandle SafeFileHandle [get]
 
virtual bool CanTimeout [get]
 
virtual int ReadTimeout [get, set]
 
virtual int WriteTimeout [get, set]
 
ServerIdentity ObjectIdentity [get, set]
 

Private Member Functions

void Init (SafeFileHandle safeHandle, FileAccess access, bool ownsHandle, int bufferSize, bool isAsync, bool isConsoleWrapper)
 
void ExposeHandle ()
 
int ReadInternal (byte[] dest, int offset, int count)
 
void WriteInternal (byte[] src, int offset, int count)
 
int ReadSegment (byte[] dest, int dest_offset, int count)
 
int WriteSegment (byte[] src, int src_offset, int count)
 
void FlushBuffer ()
 
void FlushBufferIfDirty ()
 
void RefillBuffer ()
 
int ReadData (SafeHandle safeHandle, byte[] buf, int offset, int count)
 
void InitBuffer (int size, bool isZeroSize)
 
string GetSecureFileName (string filename)
 
string GetSecureFileName (string filename, bool full)
 
int GetCopyBufferSize ()
 
Task< int > BeginEndReadAsync (byte[] buffer, int offset, int count)
 
void RunReadWriteTaskWhenReady (Task asyncWaiter, Stream.ReadWriteTask readWriteTask)
 
void RunReadWriteTask (Stream.ReadWriteTask readWriteTask)
 
void FinishTrackingAsyncOperation ()
 
Task FinishWriteAsync (Task writeTask, byte[] localBuffer)
 
Task BeginEndWriteAsync (byte[] buffer, int offset, int count)
 
bool HasOverriddenBeginEndRead ()
 
bool HasOverriddenBeginEndWrite ()
 

Static Private Member Functions

static FileStream ()
 

Private Attributes

byte[] buf
 
string name
 
SafeFileHandle safeHandle
 
bool isExposed
 
long append_startpos
 
FileAccess access
 
bool owner
 
bool async
 
bool canseek
 
bool anonymous
 
bool buf_dirty
 
int buf_size
 
int buf_length
 
int buf_offset
 
long buf_start
 
Stream.ReadWriteTask _activeReadWriteTask
 
SemaphoreSlim _asyncActiveSemaphore
 
object _identity
 

Static Private Attributes

static byte[] buf_recycle
 
static readonly object buf_recycle_lock
 

Detailed Description

Definition at line 12 of file FileStream.cs.


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