MCPcopy Index your code
hub / github.com/yuin/gopher-lua / newRegistry

Function newRegistry

state.go:378–380  ·  view source on GitHub ↗
(handler registryHandler, initialSize int, growBy int, maxSize int, alloc *allocator)

Source from the content-addressed store, hash-verified

376}
377
378func newRegistry(handler registryHandler, initialSize int, growBy int, maxSize int, alloc *allocator) *registry {
379 return &registry{make([]LValue, initialSize), 0, growBy, maxSize, alloc, handler}
380}
381
382func (rg *registry) checkSize(requiredSize int) { // +inline-start
383 if requiredSize > cap(rg.array) {

Callers 4

newLStateFunction · 0.70
BenchmarkRegistrySetTopFunction · 0.70

Calls

no outgoing calls

Tested by 3

BenchmarkRegistrySetTopFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…