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

Method Init

sparse/set.go:29–31  ·  view source on GitHub ↗

Init initializes a Set to have a given maximum size. The set can contain numbers in [0, max-1].

(max uint32)

Source from the content-addressed store, hash-verified

27// Init initializes a Set to have a given maximum size.
28// The set can contain numbers in [0, max-1].
29func (s *Set) Init(max uint32) {
30 s.sparse = make([]uint32, max)
31}
32
33// Reset clears (empties) the set.
34func (s *Set) Reset() {

Callers 2

initMethod · 0.80
TestNstateEncFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestNstateEncFunction · 0.64