C.uint16_t(value)



Creates a new C Value of type uint16_t. This function is a simplified wrapper around the Value constructor.

Return value

This function returns a Value

Example

local c = require 'c' -- Defines a C Value of type "uint16_t", initialized with the value 65535 local val = c.uint16_t(65535) -- Prints the C Value print(val)