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

◆ BeginRead() [1/2]

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

Definition at line 385 of file Stream.cs.

386 {
388 lock (_stream)
389 {
390 IAsyncResult result;
391 if (!flag)
392 {
393 IAsyncResult asyncResult = _stream.BeginReadInternal(buffer, offset, count, callback, state, serializeAsynchronously: true, apm: true);
394 result = asyncResult;
395 }
396 else
397 {
398 result = _stream.BeginRead(buffer, offset, count, callback, state);
399 }
400 return result;
401 }
402 }
readonly Stream _stream
Definition Stream.cs:244
bool HasOverriddenBeginEndRead()
Task< int > BeginReadInternal(byte[] buffer, int offset, int count, AsyncCallback callback, object state, bool serializeAsynchronously, bool apm)
Definition Stream.cs:693
virtual IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state)
Definition Stream.cs:688

References System.IO.Stream.SyncStream._stream, System.asyncResult, System.IO.Stream.BeginRead(), System.IO.Stream.BeginReadInternal(), System.buffer, System.count, System.IO.Stream.HasOverriddenBeginEndRead(), System.offset, and System.state.