12 references to ArrayPoolGrow
Microsoft.ML.Tokenizers (12)
Model\CodeGenTokenizer.cs (2)
1291
Helpers.
ArrayPoolGrow
(ref bytes, (bytes.Length + bytesCountToEncode) * 2);
1573
Helpers.
ArrayPoolGrow
<byte>(ref bytes, bytes.Length * 2);
Model\SentencePieceTokenizer.cs (4)
1623
Helpers.
ArrayPoolGrow
(ref bytesPoolArray, bytesCount * 2);
1687
Helpers.
ArrayPoolGrow
(ref charPoolArray, len);
1906
Helpers.
ArrayPoolGrow
(ref bytesPoolArray, bytesCount * 2);
2029
Helpers.
ArrayPoolGrow
(ref charPoolArray, len);
Normalizer\BertNormalizer.cs (2)
154
Helpers.
ArrayPoolGrow
(ref buffer, index + 40);
165
Helpers.
ArrayPoolGrow
(ref buffer, index + buffer.Length + 10);
Utils\Helpers.netstandard.cs (4)
133
Helpers.
ArrayPoolGrow
(ref destination, destination.Length * 2);
145
Helpers.
ArrayPoolGrow
(ref destination, destination.Length * 2);
158
Helpers.
ArrayPoolGrow
(ref destination, Math.Max(destination.Length, 4) * 2);
172
Helpers.
ArrayPoolGrow
(ref destination, Math.Max(destination.Length, 3) * 2);