public static string luaL_tolstring(LuaState state, int index, out uint length) { IntPtr stringPtr = LuaNativeBinding.luaL_tolstring(state, index, out length); return(Marshal.PtrToStringAnsi(stringPtr)); }