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)
58
byte[] array =
_bytes
;
71
Debug.Assert(
_bytes
is not null);
75
byte[] bufferToReturn =
_bytes
;
81
public Span<byte> ActiveSpan => new Span<byte>(
_bytes
, _activeStart, _availableStart - _activeStart);
82
public ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(
_bytes
, _activeStart, _availableStart - _activeStart);
83
public Memory<byte> ActiveMemory => new Memory<byte>(
_bytes
, _activeStart, _availableStart - _activeStart);
85
public int AvailableLength =>
_bytes
.Length - _availableStart;
86
public Span<byte> AvailableSpan =>
_bytes
.AsSpan(_availableStart);
87
public Memory<byte> AvailableMemory =>
_bytes
.AsMemory(_availableStart);
88
public Memory<byte> AvailableMemorySliced(int length) => new Memory<byte>(
_bytes
, _availableStart, length);
90
public int Capacity =>
_bytes
.Length;
93
public byte[] DangerousGetUnderlyingBuffer() =>
_bytes
;
133
if (
_bytes
.Length == 0)
144
Buffer.BlockCopy(
_bytes
, _activeStart,
_bytes
, 0, ActiveLength);
159
int newSize = Math.Max(desiredSize, (int)Math.Min(Array.MaxLength, 2 * (uint)
_bytes
.Length));
164
byte[] oldBytes =
_bytes
;