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

◆ OnRead()

static void System.Net.BufferedReadStream.ReadAsyncResult.OnRead ( IAsyncResult result)
inlinestaticprivate

Definition at line 53 of file BufferedReadStream.cs.

54 {
55 if (result.CompletedSynchronously)
56 {
57 return;
58 }
59 ReadAsyncResult readAsyncResult = (ReadAsyncResult)result.AsyncState;
60 try
61 {
62 readAsyncResult._read += readAsyncResult._parent.BaseStream.EndRead(result);
63 readAsyncResult.InvokeCallback();
64 }
65 catch (Exception result2)
66 {
67 if (readAsyncResult.IsCompleted)
68 {
69 throw;
70 }
71 readAsyncResult.InvokeCallback(result2);
72 }
73 }
ReadAsyncResult(BufferedReadStream parent, AsyncCallback callback, object state)

References System.Net.BufferedReadStream.ReadAsyncResult.ReadAsyncResult(), System.Net.BufferedReadStream.ReadAsyncResult._parent, System.IAsyncResult.AsyncState, System.Net.DelegatedStream.BaseStream, System.IAsyncResult.CompletedSynchronously, System.IO.Stream.EndRead(), System.Net.LazyAsyncResult.InvokeCallback(), and System.Net.LazyAsyncResult.IsCompleted.