MCPcopy Index your code
hub / github.com/Shopify/go-lua / atInt

Method atInt

tables.go:53–58  ·  view source on GitHub ↗
(k int)

Source from the content-addressed store, hash-verified

51}
52
53func (t *table) atInt(k int) value {
54 if 0 < k && k <= len(t.array) {
55 return t.array[k-1]
56 }
57 return t.hash[float64(k)]
58}
59
60func (t *table) maybeResizeArray(key int) bool {
61 // Precondition: key > len(t.array).

Callers 5

unboundSearchMethod · 0.95
LoadMethod · 0.80
GlobalMethod · 0.80
RawGetIntMethod · 0.80
SetGlobalMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected