23 references to Length
System.Net.Mail (23)
System\Net\Base64Stream.cs (5)
74
if (_writeState != null && WriteState.
Length
> 0)
156
if (_writeState != null && WriteState.
Length
> 0)
166
if (_writeState != null && WriteState.
Length
> 0)
168
await base.WriteAsync(WriteState.Buffer.AsMemory(0, WriteState.
Length
), cancellationToken).ConfigureAwait(false);
177
base.Write(WriteState.Buffer, 0, WriteState.
Length
);
System\Net\Mime\ByteEncoder.cs (1)
15
public string GetEncodedString() => Encoding.ASCII.GetString(WriteState.Buffer, 0, WriteState.
Length
);
System\Net\Mime\EightBitStream.cs (2)
62
result = base.BeginWrite(WriteState.Buffer, 0, WriteState.
Length
, callback, state);
92
base.Write(WriteState.Buffer, 0, WriteState.
Length
);
System\Net\Mime\QEncodedStream.cs (4)
199
if (_writeState != null && _writeState.
Length
> 0)
201
await base.WriteAsync(WriteState.Buffer.AsMemory(0, WriteState.
Length
), cancellationToken).ConfigureAwait(false);
210
if (_writeState != null && _writeState.
Length
> 0)
212
base.Write(WriteState.Buffer, 0, WriteState.
Length
);
System\Net\Mime\QuotedPrintableStream.cs (10)
215
if (WriteState.Buffer.Length - WriteState.
Length
< SizeOfSoftCRLF)
230
if (WriteState.Buffer.Length - WriteState.
Length
< (_encodeCRLF ? SizeOfEncodedCRLF : SizeOfNonEncodedCRLF))
251
if (WriteState.Buffer.Length - WriteState.
Length
< SizeOfSoftCRLF)
265
if (WriteState.Buffer.Length - WriteState.
Length
< 1)
274
if (WriteState.Buffer.Length - WriteState.
Length
< SizeOfEncodedChar)
301
public string GetEncodedString() => Encoding.ASCII.GetString(WriteState.Buffer, 0, WriteState.
Length
);
314
if (_writeState != null && _writeState.
Length
> 0)
316
await base.WriteAsync(WriteState.Buffer.AsMemory(0, WriteState.
Length
), cancellationToken).ConfigureAwait(false);
325
if (_writeState != null && _writeState.
Length
> 0)
327
base.Write(WriteState.Buffer, 0, WriteState.
Length
);
System\Net\Mime\WriteStateInfoBase.cs (1)
83
bytes.CopyTo(_buffer.AsSpan(
Length
));