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)
79
private object SyncObj =>
_map
;
93
return
_map
.TryGetValue(new StringSpanOrdinalKey(key), out value!);
103
return
_map
.TryGetValue(new StringSpanOrdinalKey(ptr, key.Length), out value!);
112
_map
.Remove(new StringSpanOrdinalKey(key));
120
if (
_map
.Count < _capacity)
122
_map
[new StringSpanOrdinalKey(k)] = v;