View definition


Defined in


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.

ToUnsigned is referenced in 1 repository