MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / index

Method index

internal/utils/sync/map_int.go:130–136  ·  view source on GitHub ↗
(k K)

Source from the content-addressed store, hash-verified

128}
129
130func (this *IntMap[K, V]) index(k K) int {
131 var index = int(k % K(this.count))
132 if index < 0 {
133 index = -index
134 }
135 return index
136}

Callers 7

PutMethod · 0.95
PutCompactMethod · 0.95
HasMethod · 0.95
GetMethod · 0.95
GetOkMethod · 0.95
DeleteMethod · 0.95
DeleteUnsafeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected