Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ BeginRead() [1/2]

override IAsyncResult System.IO.FileStream.BeginRead ( byte[] buffer,
int offset,
int count,
AsyncCallback? callback,
object? state )
inlinevirtualinherited

Reimplemented from System.IO.Stream.

Reimplemented in System.IO.IsolatedStorage.IsolatedStorageFileStream.

Definition at line 441 of file FileStream.cs.

442 {
443 Stream.ValidateBufferArguments(buffer, offset, count);
445 {
446 ThrowHelper.ThrowObjectDisposedException_FileClosed();
447 }
448 else if (!CanRead)
449 {
450 ThrowHelper.ThrowNotSupportedException_UnreadableStream();
451 }
452 return _strategy.BeginRead(buffer, offset, count, callback, state);
453 }
override bool CanRead
Definition FileStream.cs:17
readonly FileStreamStrategy _strategy
Definition FileStream.cs:12
virtual IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state)
Definition Stream.cs:688

References System.IO.FileStream._strategy, System.IO.Stream.BeginRead(), System.buffer, System.IO.FileStream.CanRead, System.count, System.IO.Strategies.FileStreamStrategy.IsClosed, System.offset, System.state, System.ThrowHelper.ThrowNotSupportedException_UnreadableStream(), System.ThrowHelper.ThrowObjectDisposedException_FileClosed(), and System.IO.Stream.ValidateBufferArguments().

Referenced by System.IO.IsolatedStorage.IsolatedStorageFileStream.BeginRead().