9 writes to Size
System.Net.Security (9)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (7)
716token.Size = 0; 756token.Size += writtenToWindow; 799token.Size += drained; 871outToken.Size = preWriteSize; 886outToken.Size += writtenToWindow; 895outToken.Size += drained; 937outToken.Size += drained;
System\Net\Security\SslStream.Protocol.cs (2)
1641Size = payload.Length; 1681Size = 0;
34 references to Size
System.Net.Security (34)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (2)
813if (context.IsServer && token.Size == 0 && errorCode == Ssl.SslErrorCode.SSL_ERROR_NONE && Ssl.IsSslRenegotiatePending(context)) 836int preWriteSize = outToken.Size;
System\Net\Security\SslStream.cs (2)
458if (token.Size > 0 && token.Payload != null) 460return InnerStream.WriteAsync(new ReadOnlyMemory<byte>(token.Payload, 0, token.Size), default).AsTask();
System\Net\Security\SslStream.IO.cs (5)
214if (token.Size > 0) 238if (token.Size > 0) 348if (token.Size > 0) 351await TIOAdapter.WriteAsync(InnerStream, new ReadOnlyMemory<byte>(token.Payload!, 0, token.Size), cancellationToken).ConfigureAwait(false); 382if (token.Size > 0)
System\Net\Security\SslStream.Protocol.cs (10)
1643if (Size > 0) 1645Payload = RentBuffer ? ArrayPool<byte>.Shared.Rent(Size) : new byte[Size]; 1646payload.CopyTo(new Span<byte>(Payload, 0, Size)); 1659Payload = RentBuffer ? ArrayPool<byte>.Shared.Rent(Size + size) : new byte[Size + size]; 1670internal int Available => Payload == null ? 0 : Payload.Length - Size; 1671internal Span<byte> AvailableSpan => Payload == null ? Span<byte>.Empty : new Span<byte>(Payload, Size, Available); 1673internal ReadOnlyMemory<byte> AsMemory() => new ReadOnlyMemory<byte>(Payload, 0, Size); 1677Debug.Assert(Payload != null || Size == 0);
System\Net\Security\SslStreamPal.Unix.cs (1)
230if (token.Size == 0 && Interop.Ssl.IsSslRenegotiatePending((SafeSslHandle)context))
System\Net\Security\TlsSession.cs (14)
1042if (token.Size > 0) 1045AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size)); 1059if (token.Size > 0) 1062AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size)); 1115if (token.Size > 0) 1118AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size)); 1257if (token.Size > 0) 1260AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size)); 1529if (token.Size > 0 && !noRenegotiation) 1532AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size)); 1636if (token.Size > 0) 1639AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size)); 2040if (token.Size > 0) 2043AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size));