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