9 writes to Size
System.Net.Security (9)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (7)
710token.Size = 0; 750token.Size += writtenToWindow; 793token.Size += drained; 865outToken.Size = preWriteSize; 880outToken.Size += writtenToWindow; 889outToken.Size += drained; 931outToken.Size += drained;
System\Net\Security\SslStream.Protocol.cs (2)
1554Size = payload.Length; 1594Size = 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)
807if (context.IsServer && token.Size == 0 && errorCode == Ssl.SslErrorCode.SSL_ERROR_NONE && Ssl.IsSslRenegotiatePending(context)) 830int 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)
211if (token.Size > 0) 235if (token.Size > 0) 333if (token.Size > 0) 336await TIOAdapter.WriteAsync(InnerStream, new ReadOnlyMemory<byte>(token.Payload!, 0, token.Size), cancellationToken).ConfigureAwait(false); 367if (token.Size > 0)
System\Net\Security\SslStream.Protocol.cs (10)
1556if (Size > 0) 1558Payload = RentBuffer ? ArrayPool<byte>.Shared.Rent(Size) : new byte[Size]; 1559payload.CopyTo(new Span<byte>(Payload, 0, Size)); 1572Payload = RentBuffer ? ArrayPool<byte>.Shared.Rent(Size + size) : new byte[Size + size]; 1583internal int Available => Payload == null ? 0 : Payload.Length - Size; 1584internal Span<byte> AvailableSpan => Payload == null ? Span<byte>.Empty : new Span<byte>(Payload, Size, Available); 1586internal ReadOnlyMemory<byte> AsMemory() => new ReadOnlyMemory<byte>(Payload, 0, Size); 1590Debug.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)
991if (token.Size > 0) 994AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size)); 1047if (token.Size > 0) 1050AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size)); 1189if (token.Size > 0) 1192AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size)); 1433if (token.Size > 0) 1436AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size)); 1513if (token.Size > 0) 1516AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size)); 1873if (token.Size > 0) 1876AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size));