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

◆ BeginWrite() [1/2]

override IAsyncResult System.IO.FileStream.BeginWrite ( 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 464 of file FileStream.cs.

465 {
466 Stream.ValidateBufferArguments(buffer, offset, count);
468 {
469 ThrowHelper.ThrowObjectDisposedException_FileClosed();
470 }
471 else if (!CanWrite)
472 {
473 ThrowHelper.ThrowNotSupportedException_UnwritableStream();
474 }
475 return _strategy.BeginWrite(buffer, offset, count, callback, state);
476 }
readonly FileStreamStrategy _strategy
Definition FileStream.cs:12
override bool CanWrite
Definition FileStream.cs:19
virtual IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state)
Definition Stream.cs:813

References System.IO.FileStream._strategy, System.IO.Stream.BeginWrite(), System.buffer, System.IO.FileStream.CanWrite, System.count, System.IO.Strategies.FileStreamStrategy.IsClosed, System.offset, System.state, System.ThrowHelper.ThrowNotSupportedException_UnwritableStream(), System.ThrowHelper.ThrowObjectDisposedException_FileClosed(), and System.IO.Stream.ValidateBufferArguments().

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