View definition

(*State).ToUnsigned

Defined in github.com/Shopify/go-lua/lua.go

Description

ToUnsigned converts the Lua value at index to a Go uint. The Lua value must be a number or a string convertible to a number.

If the number is not an unsigned integer, it is truncated in some non-specified way. If the number is outside the range of uint, it is normalized to the remainder of its division by one more than the maximum representable value.

If the operation failed, the second return value will be false.

http://www.lua.org/manual/5.2/manual.html#lua_tounsignedx

ToUnsigned is referenced in 1 repository

github.com/Shopify/go-lua