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)
1627Size = payload.Length; 1667Size = 0;
32 references to Size
System.Net.Security (32)
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) 336if (token.Size > 0) 339await TIOAdapter.WriteAsync(InnerStream, new ReadOnlyMemory<byte>(token.Payload!, 0, token.Size), cancellationToken).ConfigureAwait(false); 370if (token.Size > 0)
System\Net\Security\SslStream.Protocol.cs (10)
1629if (Size > 0) 1631Payload = RentBuffer ? ArrayPool<byte>.Shared.Rent(Size) : new byte[Size]; 1632payload.CopyTo(new Span<byte>(Payload, 0, Size)); 1645Payload = RentBuffer ? ArrayPool<byte>.Shared.Rent(Size + size) : new byte[Size + size]; 1656internal int Available => Payload == null ? 0 : Payload.Length - Size; 1657internal Span<byte> AvailableSpan => Payload == null ? Span<byte>.Empty : new Span<byte>(Payload, Size, Available); 1659internal ReadOnlyMemory<byte> AsMemory() => new ReadOnlyMemory<byte>(Payload, 0, Size); 1663Debug.Assert(Payload != null || Size == 0);
System\Net\Security\SslStreamPal.Unix.cs (1)
226if (token.Size == 0 && Interop.Ssl.IsSslRenegotiatePending((SafeSslHandle)context))
System\Net\Security\TlsSession.cs (12)
1023if (token.Size > 0) 1026AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size)); 1079if (token.Size > 0) 1082AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size)); 1221if (token.Size > 0) 1224AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size)); 1489if (token.Size > 0) 1492AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size)); 1596if (token.Size > 0) 1599AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size)); 2000if (token.Size > 0) 2003AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size));