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

Method PushUserData

lua.go:1463–1463  ·  view source on GitHub ↗

PushUserData is similar to PushLightUserData, but pushes a full userdata onto the stack.

(d interface{})

Source from the content-addressed store, hash-verified

1461// PushUserData is similar to PushLightUserData, but pushes a full userdata
1462// onto the stack.
1463func (l *State) PushUserData(d interface{}) { l.apiPush(&userData{data: d}) }
1464
1465// Length of the value at index; it is equivalent to the # operator in
1466// Lua. The result is pushed on the stack.

Callers 4

TestUserDataEqualityNilFunction · 0.95
ExampleFunction · 0.95
newStreamFunction · 0.80

Calls 1

apiPushMethod · 0.95

Tested by 3

TestUserDataEqualityNilFunction · 0.76
ExampleFunction · 0.76