1 write to _map
Microsoft.ML.Tokenizers (1)
Utils\StringSpanOrdinalKey.cs (1)
86_map = new Dictionary<StringSpanOrdinalKey, TValue>(capacity);
6 references to _map
Microsoft.ML.Tokenizers (6)
Utils\StringSpanOrdinalKey.cs (6)
79private object SyncObj => _map; 93return _map.TryGetValue(new StringSpanOrdinalKey(key), out value!); 103return _map.TryGetValue(new StringSpanOrdinalKey(ptr, key.Length), out value!); 112_map.Remove(new StringSpanOrdinalKey(key)); 120if (_map.Count < _capacity) 122_map[new StringSpanOrdinalKey(k)] = v;