6 writes to _bytes
System.Net.Security (6)
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (6)
37_bytes = initialSize == 0 49_bytes = buffer; 59_bytes = null!; 76_bytes = Array.Empty<byte>(); 136_bytes = ArrayPool<byte>.Shared.Rent(byteCount); 174_bytes = newBytes;
17 references to _bytes
System.Net.Security (17)
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (17)
58byte[] array = _bytes; 71Debug.Assert(_bytes is not null); 75byte[] bufferToReturn = _bytes; 81public Span<byte> ActiveSpan => new Span<byte>(_bytes, _activeStart, _availableStart - _activeStart); 82public ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart); 83public Memory<byte> ActiveMemory => new Memory<byte>(_bytes, _activeStart, _availableStart - _activeStart); 85public int AvailableLength => _bytes.Length - _availableStart; 86public Span<byte> AvailableSpan => _bytes.AsSpan(_availableStart); 87public Memory<byte> AvailableMemory => _bytes.AsMemory(_availableStart); 88public Memory<byte> AvailableMemorySliced(int length) => new Memory<byte>(_bytes, _availableStart, length); 90public int Capacity => _bytes.Length; 93public byte[] DangerousGetUnderlyingBuffer() => _bytes; 133if (_bytes.Length == 0) 144Buffer.BlockCopy(_bytes, _activeStart, _bytes, 0, ActiveLength); 159int newSize = Math.Max(desiredSize, (int)Math.Min(Array.MaxLength, 2 * (uint)_bytes.Length)); 164byte[] oldBytes = _bytes;