Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/google/codesearch
/ Reset
Method
Reset
sparse/set.go:34–36 ·
view source on GitHub ↗
Reset clears (empties) the set.
()
Source
from the content-addressed store, hash-verified
32
33
// Reset clears (empties) the set.
34
func
(s *Set) Reset() {
35
s.dense = s.dense[:0]
36
}
37
38
// Add adds x to the set if it is not already there.
39
func
(s *Set) Add(x uint32) {
Callers
6
dec
Method · 0.80
init
Method · 0.80
stepEmpty
Method · 0.80
stepByte
Method · 0.80
TestNstateEnc
Function · 0.80
Add
Method · 0.80
Calls
no outgoing calls
Tested by
1
TestNstateEnc
Function · 0.64