7 writes to Size
System.Net.Security (7)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (5)
671
token.
Size
= 0;
732
token.
Size
= sendCount;
764
outToken.
Size
= 0;
786
outToken.
Size
= 0;
790
outToken.
Size
= retVal;
System\Net\Security\SslStream.Protocol.cs (2)
1401
Size
= payload.Length;
1441
Size
= 0;
19 references to Size
System.Net.Security (19)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
744
if (context.IsServer && token.
Size
== 0 && errorCode == Ssl.SslErrorCode.SSL_ERROR_NONE && Ssl.IsSslRenegotiatePending(context))
System\Net\Security\SslStream.cs (2)
457
if (token.
Size
> 0 && token.Payload != null)
459
return InnerStream.WriteAsync(new ReadOnlyMemory<byte>(token.Payload, 0, token.
Size
), default).AsTask();
System\Net\Security\SslStream.IO.cs (5)
229
if (token.
Size
> 0)
253
if (token.
Size
> 0)
328
if (token.
Size
> 0)
331
await TIOAdapter.WriteAsync(InnerStream, new ReadOnlyMemory<byte>(token.Payload!, 0, token.
Size
), cancellationToken).ConfigureAwait(false);
362
if (token.
Size
> 0)
System\Net\Security\SslStream.Protocol.cs (10)
1403
if (
Size
> 0)
1405
Payload = RentBuffer ? ArrayPool<byte>.Shared.Rent(
Size
) : new byte[
Size
];
1406
payload.CopyTo(new Span<byte>(Payload, 0,
Size
));
1419
Payload = RentBuffer ? ArrayPool<byte>.Shared.Rent(
Size
+ size) : new byte[
Size
+ size];
1430
internal int Available => Payload == null ? 0 : Payload.Length -
Size
;
1431
internal Span<byte> AvailableSpan => Payload == null ? Span<byte>.Empty : new Span<byte>(Payload,
Size
, Available);
1433
internal ReadOnlyMemory<byte> AsMemory() => new ReadOnlyMemory<byte>(Payload, 0,
Size
);
1437
Debug.Assert(Payload != null ||
Size
== 0);
System\Net\Security\SslStreamPal.Unix.cs (1)
214
if (token.
Size
== 0 && Interop.Ssl.IsSslRenegotiatePending((SafeSslHandle)context))