12 protected static readonly
byte[]
s_crlf =
new byte[2] { 13, 10 };
68 for (
int i = 0; i <
value.Length; i++)
76 charsAlreadyOnLine = 0;
78 else if (i - num2 >
_lineLength - charsAlreadyOnLine && num != num2)
83 charsAlreadyOnLine = 0;
90 if (
value.Length - num2 > 0)
120 multiAsyncResult.Result = contentStream;
123 return multiAsyncResult;
142 if (multiResult !=
null)
168 multiAsyncResult.
Leave();
172 multiAsyncResult.
Leave(result2);
virtual void EndWrite(IAsyncResult asyncResult)
void Write(byte[] buffer, int offset, int count)
virtual IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state)
void WriteHeaders(NameValueCollection headers, bool allowUnicode)
Stream EndGetContentStream(IAsyncResult result)
readonly bool _shouldEncodeLeadingDots
virtual void CheckBoundary()
Stream GetContentStream(MultiAsyncResult multiResult)
IAsyncResult BeginGetContentStream(AsyncCallback callback, object state)
Stream GetContentStream()
void WriteHeader(string name, string value, bool allowUnicode)
BaseWriter(Stream stream, bool shouldEncodeLeadingDots)
void WriteAndFold(string value, int charsAlreadyOnLine, bool allowUnicode)
static readonly byte[] s_crlf
void OnClose(object sender, EventArgs args)
static void OnWrite(IAsyncResult result)
readonly BufferBuilder _bufferBuilder
readonly EventHandler _onCloseHandler
static readonly AsyncCallback s_onWrite
void Flush(MultiAsyncResult multiResult)
static bool IsFWSAt(string data, int index)
static object End(IAsyncResult result)
static string MailWriterIsInContent
bool CompletedSynchronously