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

◆ OnRead()

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

Definition at line 59 of file Base64Stream.cs.

60 {
61 if (result.CompletedSynchronously)
62 {
63 return;
64 }
65 ReadAsyncResult readAsyncResult = (ReadAsyncResult)result.AsyncState;
66 try
67 {
68 if (!readAsyncResult.CompleteRead(result))
69 {
70 readAsyncResult.Read();
71 }
72 }
73 catch (Exception result2)
74 {
75 if (readAsyncResult.IsCompleted)
76 {
77 throw;
78 }
79 readAsyncResult.InvokeCallback(result2);
80 }
81 }
ReadAsyncResult(Base64Stream parent, byte[] buffer, int offset, int count, AsyncCallback callback, object state)

References System.Net.Base64Stream.ReadAsyncResult.ReadAsyncResult(), System.IAsyncResult.AsyncState, System.IAsyncResult.CompletedSynchronously, System.Net.Base64Stream.ReadAsyncResult.CompleteRead(), System.Net.LazyAsyncResult.InvokeCallback(), System.Net.LazyAsyncResult.IsCompleted, and System.Net.Base64Stream.ReadAsyncResult.Read().