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

◆ ProcessRead()

bool System.Net.Mail.SmtpReplyReaderFactory.ReadLinesAsyncResult.ProcessRead ( )
inlineprivate

Definition at line 114 of file SmtpReplyReaderFactory.cs.

115 {
116 if (_read == 0)
117 {
119 }
120 int num = 0;
121 while (num != _read)
122 {
124 if (_statusRead < 4)
125 {
126 int num3 = Math.Min(4 - _statusRead, num2);
127 _statusRead += num3;
128 num += num3;
129 num2 -= num3;
130 if (num2 == 0)
131 {
132 continue;
133 }
134 }
136 num += num2;
137 if (_parent._readState == ReadState.Status0)
138 {
140 _builder = new StringBuilder();
141 _statusRead = 0;
142 if (_oneLine)
143 {
146 return false;
147 }
148 }
149 else if (_parent._readState == ReadState.Done)
150 {
154 return false;
155 }
156 }
157 return true;
158 }
void Add(TKey key, TValue value)
void Push(byte[] buffer, int offset, int count)
unsafe int ProcessRead(byte[] buffer, int offset, int read, bool readLine)
static string net_io_readfailure
Definition SR.cs:158
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string net_io_connectionclosed
Definition SR.cs:160
Definition SR.cs:7
static Encoding UTF8
Definition Encoding.cs:526
override string ToString()
StringBuilder Append(char value, int repeatCount)

References System.Net.Mail.SmtpReplyReaderFactory._bufferedStream, System.Net.Mail.SmtpReplyReaderFactory.ReadLinesAsyncResult._builder, System.Net.Mail.SmtpReplyReaderFactory._byteBuffer, System.Net.Mail.SmtpReplyReaderFactory.ReadLinesAsyncResult._lines, System.Net.Mail.SmtpReplyReaderFactory.ReadLinesAsyncResult._oneLine, System.Net.Mail.SmtpReplyReaderFactory.ReadLinesAsyncResult._parent, System.Net.Mail.SmtpReplyReaderFactory.ReadLinesAsyncResult._read, System.Net.Mail.SmtpReplyReaderFactory._readState, System.Net.Mail.SmtpReplyReaderFactory._statusCode, System.Net.Mail.SmtpReplyReaderFactory.ReadLinesAsyncResult._statusRead, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Text.StringBuilder.Append(), System.SR.Format(), System.Net.LazyAsyncResult.InvokeCallback(), System.Text.StringBuilder.Length, System.Math.Min(), System.SR.net_io_connectionclosed, System.SR.net_io_readfailure, System.Net.Mail.SmtpReplyReaderFactory.ProcessRead(), System.Net.BufferedReadStream.Push(), System.Text.StringBuilder.ToString(), and System.Text.Encoding.UTF8.

Referenced by System.Net.Mail.SmtpReplyReaderFactory.ReadLinesAsyncResult.Read().