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

Method RawGetValue

lua.go:1025–1028  ·  view source on GitHub ↗

RawGetValue pushes onto the stack value table[p] where table is the value at index on the stack, and p is a light userdata. The access is raw, as it doesn't invoke metamethods. http://www.lua.org/manual/5.2/manual.html#lua_rawgetp

(index int, p interface{})

Source from the content-addressed store, hash-verified

1023//
1024// http://www.lua.org/manual/5.2/manual.html#lua_rawgetp
1025func (l *State) RawGetValue(index int, p interface{}) {
1026 t := l.indexToValue(index).(*table)
1027 l.apiPush(t.at(p))
1028}
1029
1030// CreateTable creates a new empty table and pushes it onto the stack.
1031// arrayCount is a hint for how many elements the table will have as a

Callers

nothing calls this directly

Calls 3

indexToValueMethod · 0.95
apiPushMethod · 0.95
atMethod · 0.80

Tested by

no test coverage detected