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

◆ BeginWrite() [1/2]

override IAsyncResult System.IO.Stream.SyncStream.BeginWrite ( byte[] buffer,
int offset,
int count,
AsyncCallback callback,
object state )
inline

Definition at line 456 of file Stream.cs.

457 {
459 lock (_stream)
460 {
461 IAsyncResult result;
462 if (!flag)
463 {
464 IAsyncResult asyncResult = _stream.BeginWriteInternal(buffer, offset, count, callback, state, serializeAsynchronously: true, apm: true);
465 result = asyncResult;
466 }
467 else
468 {
469 result = _stream.BeginWrite(buffer, offset, count, callback, state);
470 }
471 return result;
472 }
473 }
readonly Stream _stream
Definition Stream.cs:244
bool HasOverriddenBeginEndWrite()
Task BeginWriteInternal(byte[] buffer, int offset, int count, AsyncCallback callback, object state, bool serializeAsynchronously, bool apm)
Definition Stream.cs:818
virtual IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state)
Definition Stream.cs:813

References System.IO.Stream.SyncStream._stream, System.asyncResult, System.IO.Stream.BeginWrite(), System.IO.Stream.BeginWriteInternal(), System.buffer, System.count, System.IO.Stream.HasOverriddenBeginEndWrite(), System.offset, and System.state.