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

Method RawGetInt

lua.go:1015–1018  ·  view source on GitHub ↗

RawGetInt pushes onto the stack the value table[key] where table is the value at index on the stack. The access is raw, as it doesn't invoke metamethods. http://www.lua.org/manual/5.2/manual.html#lua_rawgeti

(index, key int)

Source from the content-addressed store, hash-verified

1013//
1014// http://www.lua.org/manual/5.2/manual.html#lua_rawgeti
1015func (l *State) RawGetInt(index, key int) {
1016 t := l.indexToValue(index).(*table)
1017 l.apiPush(t.atInt(key))
1018}
1019
1020// RawGetValue pushes onto the stack value table[p] where table is the
1021// value at index on the stack, and p is a light userdata. The access is

Callers 6

PushGlobalTableMethod · 0.95
intPairsFunction · 0.80
SwapMethod · 0.80
LessMethod · 0.80
table.goFile · 0.80
findLoaderFunction · 0.80

Calls 3

indexToValueMethod · 0.95
apiPushMethod · 0.95
atIntMethod · 0.80

Tested by

no test coverage detected