Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.IO.IsolatedStorage.IsolatedStorageFileStream Class Reference

Classes

struct  InitialiationData
 

Public Member Functions

 IsolatedStorageFileStream (string path, FileMode mode)
 
 IsolatedStorageFileStream (string path, FileMode mode, IsolatedStorageFile? isf)
 
 IsolatedStorageFileStream (string path, FileMode mode, FileAccess access)
 
 IsolatedStorageFileStream (string path, FileMode mode, FileAccess access, IsolatedStorageFile? isf)
 
 IsolatedStorageFileStream (string path, FileMode mode, FileAccess access, FileShare share)
 
 IsolatedStorageFileStream (string path, FileMode mode, FileAccess access, FileShare share, IsolatedStorageFile? isf)
 
 IsolatedStorageFileStream (string path, FileMode mode, FileAccess access, FileShare share, int bufferSize)
 
 IsolatedStorageFileStream (string path, FileMode mode, FileAccess access, FileShare share, int bufferSize, IsolatedStorageFile? isf)
 
override ValueTask DisposeAsync ()
 
override void Flush ()
 
override void Flush (bool flushToDisk)
 
override Task FlushAsync (CancellationToken cancellationToken)
 
override void SetLength (long value)
 
override int Read (byte[] buffer, int offset, int count)
 
override int Read (Span< byte > buffer)
 
override Task< int > ReadAsync (byte[] buffer, int offset, int count, CancellationToken cancellationToken)
 
override ValueTask< int > ReadAsync (Memory< byte > buffer, CancellationToken cancellationToken)
 
override int ReadByte ()
 
override long Seek (long offset, SeekOrigin origin)
 
override void Write (byte[] buffer, int offset, int count)
 
override void Write (ReadOnlySpan< byte > buffer)
 
override Task WriteAsync (byte[] buffer, int offset, int count, CancellationToken cancellationToken)
 
override ValueTask WriteAsync (ReadOnlyMemory< byte > buffer, CancellationToken cancellationToken)
 
override void WriteByte (byte value)
 
override IAsyncResult BeginRead (byte[] array, int offset, int numBytes, AsyncCallback? userCallback, object? stateObject)
 
override IAsyncResult BeginWrite (byte[] array, int offset, int numBytes, AsyncCallback? userCallback, object? stateObject)
 
override int EndRead (IAsyncResult asyncResult)
 
override void EndWrite (IAsyncResult asyncResult)
 
override void Unlock (long position, long length)
 
override void Lock (long position, long length)
 
Task FlushAsync ()
 
Task< int > ReadAsync (byte[] buffer, int offset, int count)
 
Task WriteAsync (byte[] buffer, int offset, int count)
 
void Dispose ()
 
override void CopyTo (Stream destination, int bufferSize)
 
void CopyTo (Stream destination)
 
override Task CopyToAsync (Stream destination, int bufferSize, CancellationToken cancellationToken)
 
Task CopyToAsync (Stream destination)
 
Task CopyToAsync (Stream destination, int bufferSize)
 
Task CopyToAsync (Stream destination, CancellationToken cancellationToken)
 
virtual void Close ()
 
object GetLifetimeService ()
 
virtual object InitializeLifetimeService ()
 

Static Public Member Functions

static Stream Synchronized (Stream stream)
 

Static Public Attributes

static readonly Stream Null = new NullStream()
 

Protected Member Functions

override void Dispose (bool disposing)
 
SemaphoreSlim EnsureAsyncActiveSemaphoreInitialized ()
 
virtual WaitHandle CreateWaitHandle ()
 
virtual void ObjectInvariant ()
 
MarshalByRefObject MemberwiseClone (bool cloneIdentity)
 

Static Protected Member Functions

static void ValidateBufferArguments (byte[] buffer, int offset, int count)
 
static void ValidateCopyToArguments (Stream destination, int bufferSize)
 

Protected Attributes

SemaphoreSlim _asyncActiveSemaphore
 

Package Functions

void DisposeInternal (bool disposing)
 
Task BaseFlushAsync (CancellationToken cancellationToken)
 
int BaseRead (Span< byte > buffer)
 
Task< int > BaseReadAsync (byte[] buffer, int offset, int count, CancellationToken cancellationToken)
 
ValueTask< int > BaseReadAsync (Memory< byte > buffer, CancellationToken cancellationToken=default(CancellationToken))
 
void BaseWrite (ReadOnlySpan< byte > buffer)
 
Task BaseWriteAsync (byte[] buffer, int offset, int count, CancellationToken cancellationToken)
 
ValueTask BaseWriteAsync (ReadOnlyMemory< byte > buffer, CancellationToken cancellationToken=default(CancellationToken))
 
ValueTask BaseDisposeAsync ()
 
Task BaseCopyToAsync (Stream destination, int bufferSize, CancellationToken cancellationToken)
 
IAsyncResult BaseBeginRead (byte[] buffer, int offset, int count, AsyncCallback callback, object state)
 
int BaseEndRead (IAsyncResult asyncResult)
 
IAsyncResult BaseBeginWrite (byte[] buffer, int offset, int count, AsyncCallback callback, object state)
 
void BaseEndWrite (IAsyncResult asyncResult)
 
Task< int > BeginReadInternal (byte[] buffer, int offset, int count, AsyncCallback callback, object state, bool serializeAsynchronously, bool apm)
 
Task BeginWriteInternal (byte[] buffer, int offset, int count, AsyncCallback callback, object state, bool serializeAsynchronously, bool apm)
 

Properties

override bool CanRead [get]
 
override bool CanWrite [get]
 
override bool CanSeek [get]
 
override long Length [get]
 
override long Position [get, set]
 
override bool IsAsync [get]
 
override IntPtr Handle [get]
 
override SafeFileHandle SafeFileHandle [get]
 
virtual string Name [get]
 
virtual bool CanTimeout [get]
 
virtual int ReadTimeout [get, set]
 
virtual int WriteTimeout [get, set]
 

Private Member Functions

 IsolatedStorageFileStream (string path, FileMode mode, FileAccess access, FileShare share, int bufferSize, InitialiationData initializationData)
 
void ValidateReadWriteArgs (byte[] buffer, int offset, int count)
 
bool HasOverriddenBeginEndRead ()
 
bool HasOverriddenBeginEndWrite ()
 
int GetCopyBufferSize ()
 
Task< int > BeginEndReadAsync (byte[] buffer, int offset, int count)
 
void FinishTrackingAsyncOperation (ReadWriteTask task)
 
Task BeginEndWriteAsync (byte[] buffer, int offset, int count)
 

Static Private Member Functions

static InitialiationData InitializeFileStream (string path, FileMode mode, FileAccess access, FileShare share, int bufferSize, IsolatedStorageFile isf)
 
static void ValidateHandle (SafeFileHandle handle, FileAccess access, int bufferSize)
 
static void ValidateHandle (SafeFileHandle handle, FileAccess access, int bufferSize, bool isAsync)
 
static void RunReadWriteTaskWhenReady (Task asyncWaiter, ReadWriteTask readWriteTask)
 
static void RunReadWriteTask (ReadWriteTask readWriteTask)
 
static async Task FinishWriteAsync (Task writeTask, byte[] localBuffer)
 

Private Attributes

readonly FileStream _fs
 
readonly IsolatedStorageFile _isf
 
readonly string _givenPath
 
readonly string _fullPath
 
readonly FileStreamStrategy _strategy
 

Detailed Description

Definition at line 8 of file IsolatedStorageFileStream.cs.


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