4 writes to _buffer
Microsoft.ML.Tokenizers (4)
Utils\Vec.cs (4)
32
_buffer
= null;
38
_buffer
= new T[capacity];
48
_buffer
= new T[DefaultCapacity];
56
Array.Resize(ref
_buffer
, _buffer.Length << 1);
11 references to _buffer
Microsoft.ML.Tokenizers (11)
Utils\Vec.cs (11)
25
return ref
_buffer
![index];
41
public int Capacity =>
_buffer
is null ? 0 :
_buffer
.Length;
46
if (
_buffer
is null)
49
_buffer
[0] = t;
54
if (
_buffer
.Length <= _count)
56
Array.Resize(ref _buffer,
_buffer
.Length << 1);
59
_buffer
[_count++] = t;
64
if (index >= _count ||
_buffer
is null)
71
_buffer
[i] =
_buffer
[i + 1];