net\System\Net\mail\QuotedPrintableStream.cs (30)
249if ((lineLength != -1 && WriteState.CurrentLineLength + sizeOfEncodedChar + 2 >= this.lineLength && (buffer[cur] == ' ' ||
253if (WriteState.Buffer.Length - WriteState.Length < sizeOfSoftCRLF)
256WriteState.Append((byte)'=');
257WriteState.AppendCRLF(false);
266if (WriteState.Buffer.Length - WriteState.Length < (encodeCRLF ? sizeOfEncodedCRLF : sizeOfNonEncodedCRLF))
272WriteState.Append((byte)'=', (byte)'0', (byte)'D', (byte)'=', (byte)'0', (byte)'A');
275WriteState.AppendCRLF(false);
282if (WriteState.Buffer.Length - WriteState.Length < sizeOfSoftCRLF)
286WriteState.Append((byte)'=');
288WriteState.Append(hexEncodeMap[buffer[cur] >> 4]);
290WriteState.Append(hexEncodeMap[buffer[cur] & 0xF]);
294if (WriteState.Buffer.Length - WriteState.Length < 1)
301if (WriteState.Buffer.Length - WriteState.Length < sizeOfEncodedChar)
305WriteState.Append((byte)'=');
307WriteState.Append(hexEncodeMap[buffer[cur] >> 4]);
309WriteState.Append(hexEncodeMap[buffer[cur] & 0xF]);
312WriteState.Append(buffer[cur]);
326return ASCIIEncoding.ASCII.GetString(this.WriteState.Buffer, 0, this.WriteState.Length);
344base.Write(WriteState.Buffer, 0, WriteState.Length);
345WriteState.BufferFlushed();
409this.parent.WriteState.BufferFlushed();
443IAsyncResult result = this.parent.BaseStream.BeginWrite(this.parent.WriteState.Buffer, 0, this.parent.WriteState.Length, onWrite, this);