C Value string conversion
Value objects supports conversion to Lua string.
String conversion of Value objects can be achieved using :
Example
local c = require "c"
-- Create a Pointer to a Buffer in memory
local c_ptr = c.Pointer(sys.Buffer("\x48\x65\x6C\x6C\x6F\x20\x4C\x75\x61\x52\x54\x20\x21\x00"))
-- always false : we are comparing a memory pointer to a Lua string value
print(c_ptr == "Hello LuaRT !")
-- always true : converts the memory pointer to a Lua string value
print(tostring(c_ptr:as("char*")) == "Hello LuaRT !")