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

◆ Flush()

void System.Net.Mime.BaseWriter.Flush ( MultiAsyncResult multiResult)
inlineprotectedinherited

Definition at line 136 of file BaseWriter.cs.

137 {
138 if (_bufferBuilder.Length <= 0)
139 {
140 return;
141 }
142 if (multiResult != null)
143 {
144 multiResult.Enter();
146 if (asyncResult.CompletedSynchronously)
147 {
149 multiResult.Leave();
150 }
151 }
152 else
153 {
155 }
157 }
virtual void EndWrite(IAsyncResult asyncResult)
Definition Stream.cs:889
void Write(byte[] buffer, int offset, int count)
virtual IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state)
Definition Stream.cs:813
readonly Stream _stream
Definition BaseWriter.cs:16
readonly BufferBuilder _bufferBuilder
Definition BaseWriter.cs:14
static readonly AsyncCallback s_onWrite
Definition BaseWriter.cs:10

References System.Net.Mime.BaseWriter._bufferBuilder, System.Net.Mime.BaseWriter._stream, System.asyncResult, System.IO.Stream.BeginWrite(), System.IO.Stream.EndWrite(), System.Net.Mime.MultiAsyncResult.Enter(), System.Net.Mail.BufferBuilder.GetBuffer(), System.Net.Mime.MultiAsyncResult.Leave(), System.Net.Mail.BufferBuilder.Length, System.Net.Mail.BufferBuilder.Reset(), System.Net.Mime.BaseWriter.s_onWrite, and System.IO.Stream.Write().

Referenced by System.Net.Mail.MailWriter.Close(), System.Net.Mime.MimeWriter.Close(), and System.Net.Mime.BaseWriter.GetContentStream().