2 writes to _readBuffer
System.Net.Security (2)
System\Net\Security\NegotiateStream.cs (2)
73
_readBuffer
= Array.Empty<byte>();
388
_readBuffer
= new byte[readBytes];
7 references to _readBuffer
System.Net.Security (7)
System\Net\Security\NegotiateStream.cs (7)
357
_readBuffer
.AsMemory(_readBufferOffset, copyBytes).CopyTo(buffer);
386
if (
_readBuffer
.Length < readBytes)
391
readBytes = await ReadAllAsync(InnerStream, new Memory<byte>(
_readBuffer
, 0, readBytes), allowZeroRead: false, cancellationToken).ConfigureAwait(false);
401
!_context.VerifyIntegrityCheck(
_readBuffer
.AsSpan(NtlmSignatureLength, readBytes - NtlmSignatureLength),
_readBuffer
.AsSpan(0, NtlmSignatureLength)))
414
statusCode = _context.UnwrapInPlace(
_readBuffer
.AsSpan(0, readBytes), out _readBufferOffset, out _readBufferCount, out _);
431
_readBuffer
.AsMemory(_readBufferOffset, copyBytes).CopyTo(buffer);