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

◆ WriteCallbackHandler()

void System.Net.Mime.MimePart.WriteCallbackHandler ( IAsyncResult result)
inlinepackage

Definition at line 241 of file MimePart.cs.

242 {
243 MimePartContext mimePartContext = (MimePartContext)result.AsyncState;
244 mimePartContext._outputStream.EndWrite(result);
245 IAsyncResult asyncResult = Stream.BeginRead(mimePartContext._buffer, 0, mimePartContext._buffer.Length, _readCallback, mimePartContext);
246 if (asyncResult.CompletedSynchronously)
247 {
249 }
250 }
virtual IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state)
Definition Stream.cs:688
AsyncCallback _readCallback
Definition MimePart.cs:39
void ReadCallbackHandler(IAsyncResult result)
Definition MimePart.cs:206

References System.Net.Mime.MimePart.MimePartContext._buffer, System.Net.Mime.MimePart.MimePartContext._outputStream, System.Net.Mime.MimePart._readCallback, System.asyncResult, System.IAsyncResult.AsyncState, System.IO.Stream.BeginRead(), System.IO.Stream.EndWrite(), and System.Net.Mime.MimePart.ReadCallbackHandler().

Referenced by System.Net.Mime.MimePart.ReadCallbackHandler(), and System.Net.Mime.MimePart.WriteCallback().