MCPcopy Create free account
hub / github.com/apache/fory / Remove

Method Remove

csharp/src/Fory/FlatMap.cs:114–135  ·  view source on GitHub ↗
(ulong key)

Source from the content-addressed store, hash-verified

112 }
113
114 [MethodImpl(MethodImplOptions.AggressiveInlining)]
115 internal bool Remove(ulong key)
116 {
117 int index = Place(key);
118 while (true)
119 {
120 ref Slot slot = ref _entries[index];
121 ulong slotKey = slot.Key;
122 if (slotKey == key)
123 {
124 RemoveEntry(index);
125 return true;
126 }
127
128 if (slotKey == EmptyKey)
129 {
130 return false;
131 }
132
133 index = (index + 1) & _mask;
134 }
135 }
136
137 internal void Clear()
138 {

Calls

no outgoing calls