7 writes to Size
System.Net.Security (7)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (5)
516
token.
Size
= 0;
569
token.
Size
= sendCount;
601
outToken.
Size
= 0;
623
outToken.
Size
= 0;
627
outToken.
Size
= retVal;
System\Net\Security\SslStream.Protocol.cs (2)
1366
Size
= payload.Length;
1406
Size
= 0;
19 references to Size
System.Net.Security (19)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
581
if (context.IsServer && token.
Size
== 0 && errorCode == Ssl.SslErrorCode.SSL_ERROR_NONE && Ssl.IsSslRenegotiatePending(context))
System\Net\Security\SslStream.cs (2)
453
if (token.
Size
> 0 && token.Payload != null)
455
return InnerStream.WriteAsync(new ReadOnlyMemory<byte>(token.Payload, 0, token.
Size
), default).AsTask();
System\Net\Security\SslStream.IO.cs (5)
228
if (token.
Size
> 0)
252
if (token.
Size
> 0)
303
if (token.
Size
> 0)
306
await TIOAdapter.WriteAsync(InnerStream, new ReadOnlyMemory<byte>(token.Payload!, 0, token.
Size
), cancellationToken).ConfigureAwait(false);
337
if (token.
Size
> 0)
System\Net\Security\SslStream.Protocol.cs (10)
1368
if (
Size
> 0)
1370
Payload = RentBuffer ? ArrayPool<byte>.Shared.Rent(
Size
) : new byte[
Size
];
1371
payload.CopyTo(new Span<byte>(Payload, 0,
Size
));
1384
Payload = RentBuffer ? ArrayPool<byte>.Shared.Rent(
Size
+ size) : new byte[
Size
+ size];
1395
internal int Available => Payload == null ? 0 : Payload.Length -
Size
;
1396
internal Span<byte> AvailableSpan => Payload == null ? Span<byte>.Empty : new Span<byte>(Payload,
Size
, Available);
1398
internal ReadOnlyMemory<byte> AsMemory() => new ReadOnlyMemory<byte>(Payload, 0,
Size
);
1402
Debug.Assert(Payload != null ||
Size
== 0);
System\Net\Security\SslStreamPal.Unix.cs (1)
212
if (token.
Size
== 0 && Interop.Ssl.IsSslRenegotiatePending((SafeSslHandle)context))