4 writes to _decryptedLength
System.Net.Security (4)
System\Net\Security\SslStream.cs (4)
77
_decryptedLength
= 0;
121
_decryptedLength
-= byteCount;
152
_decryptedLength
= decryptedCount;
164
_decryptedLength
= 0;
9 references to _decryptedLength
System.Net.Security (9)
System\Net\Security\SslStream.cs (9)
84
public Span<byte> DecryptedSpan => _buffer.ActiveSpan.Slice(0,
_decryptedLength
);
92
public int DecryptedLength =>
_decryptedLength
;
96
public Span<byte> EncryptedSpanSliced(int length) => _buffer.ActiveSpan.Slice(
_decryptedLength
+ _decryptedPadding, length);
98
public ReadOnlySpan<byte> EncryptedReadOnlySpan => _buffer.ActiveSpan.Slice(
_decryptedLength
+ _decryptedPadding);
100
public int EncryptedLength => _buffer.ActiveLength - _decryptedPadding -
_decryptedLength
;
118
Debug.Assert(byteCount <=
_decryptedLength
, "byteCount <= _decryptedBytes");
125
if (
_decryptedLength
== 0)
135
Debug.Assert(
_decryptedLength
== 0, "_decryptedBytes == 0");
143
Debug.Assert(
_decryptedLength
== 0, "_decryptedBytes == 0");