Function dmsdk::lua::check_string
source · Expand description
Checks if there is a Lua string at i
and converts it into a String
.
This function uses CStr::from_ptr()
and String::from_utf8_lossy()
,
so the string will be cut short at nulls and any non-UTF8 sequences will be replaced with std::char::REPLACEMENT_CHARACTER
.