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