MCPcopy Index your code
hub / github.com/google/codesearch / NewSet

Function NewSet

sparse/set.go:21–25  ·  view source on GitHub ↗

NewSet returns a new Set with a given maximum size. The set can contain numbers in [0, max-1].

(max uint32)

Source from the content-addressed store, hash-verified

19// NewSet returns a new Set with a given maximum size.
20// The set can contain numbers in [0, max-1].
21func NewSet(max uint32) *Set {
22 return &Set{
23 sparse: make([]uint32, max),
24 }
25}
26
27// Init initializes a Set to have a given maximum size.
28// The set can contain numbers in [0, max-1].

Callers 1

CreateFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…