1 write to _buffer
System.Net.Security (1)
System\Net\Security\SslStream.cs (1)
76
_buffer
= new ArrayBuffer(initialSize: 0, usePool: true);
17 references to _buffer
System.Net.Security (17)
System\Net\Security\SslStream.cs (17)
84
public Span<byte> DecryptedSpan =>
_buffer
.ActiveSpan.Slice(0, _decryptedLength);
89
return
_buffer
.ActiveSpan.Slice(0, length);
94
public int ActiveLength =>
_buffer
.ActiveLength;
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;
102
public Memory<byte> AvailableMemory =>
_buffer
.AvailableMemory;
104
public int AvailableLength =>
_buffer
.AvailableLength;
106
public int Capacity =>
_buffer
.Capacity;
108
public void Commit(int byteCount) =>
_buffer
.Commit(byteCount);
113
_buffer
.EnsureAvailableSpace(byteCount);
120
_buffer
.Discard(byteCount);
127
_buffer
.Discard(_decryptedPadding);
138
_buffer
.Discard(byteCount);
149
_buffer
.Discard(decryptedOffset);
157
_buffer
.Discard(frameSize);
163
_buffer
.ClearAndReturnBuffer();