30 references to WriteState
System.Net.Mail (30)
System\Net\Mime\QuotedPrintableStream.cs (30)
211
if ((_lineLength != -1 &&
WriteState
.CurrentLineLength + SizeOfEncodedChar + 2 >= _lineLength && (buffer[cur] == ' ' ||
215
if (
WriteState
.Buffer.Length -
WriteState
.Length < SizeOfSoftCRLF)
220
WriteState
.Append((byte)'=');
221
WriteState
.AppendCRLF(false);
230
if (
WriteState
.Buffer.Length -
WriteState
.Length < (_encodeCRLF ? SizeOfEncodedCRLF : SizeOfNonEncodedCRLF))
239
WriteState
.Append("=0D=0A"u8);
243
WriteState
.AppendCRLF(false);
251
if (
WriteState
.Buffer.Length -
WriteState
.Length < SizeOfSoftCRLF)
257
WriteState
.Append((byte)'=');
259
WriteState
.Append(HexEncodeMap[buffer[cur] >> 4]);
261
WriteState
.Append(HexEncodeMap[buffer[cur] & 0xF]);
265
if (
WriteState
.Buffer.Length -
WriteState
.Length < 1)
274
if (
WriteState
.Buffer.Length -
WriteState
.Length < SizeOfEncodedChar)
280
WriteState
.Append((byte)'=');
282
WriteState
.Append(HexEncodeMap[buffer[cur] >> 4]);
284
WriteState
.Append(HexEncodeMap[buffer[cur] & 0xF]);
288
WriteState
.Append(buffer[cur]);
301
public string GetEncodedString() => Encoding.ASCII.GetString(
WriteState
.Buffer, 0,
WriteState
.Length);
316
await base.WriteAsync(
WriteState
.Buffer.AsMemory(0,
WriteState
.Length), cancellationToken).ConfigureAwait(false);
317
WriteState
.BufferFlushed();
327
base.Write(
WriteState
.Buffer, 0,
WriteState
.Length);
328
WriteState
.BufferFlushed();