MCPcopy Create free account
hub / github.com/buke/quickjs-go / Count

Method Count

handle.go:97–108  ·  view source on GitHub ↗

Count returns number of stored handles (for debugging)

()

Source from the content-addressed store, hash-verified

95
96// Count returns number of stored handles (for debugging)
97func (hs *handleStore) Count() int {
98 if hs == nil {
99 return 0
100 }
101
102 count := 0
103 hs.handles.Range(func(_, _ interface{}) bool {
104 count++
105 return true
106 })
107 return count
108}

Calls

no outgoing calls