Path: blob/master/Resources/taoframework-2.1.0/bin/Tao.Lua.xml
178 views
<?xml version="1.0"?>1<doc>2<assembly>3<name>Tao.Lua</name>4</assembly>5<members>6<member name="T:Tao.Lua.Lua">7#region Class Documentation8<summary>9Lua bindings for .NET, implementing Lua 5.1.1 (http://www.lua.org).10</summary>11<remarks>12Lua is a powerful light-weight programming language designed for13extending applications. Lua is also frequently used as a14general-purpose, stand-alone language.15<p>More information can be found at the official website (http://www.lua.org).</p>16</remarks>17#endregion Class Documentation18</member>19<member name="F:Tao.Lua.Lua.LUA_VERSION">20<summary>2122</summary>23</member>24<member name="F:Tao.Lua.Lua.LUA_RELEASE">25<summary>2627</summary>28</member>29<member name="F:Tao.Lua.Lua.LUA_VERSION_NUM">30<summary>3132</summary>33</member>34<member name="F:Tao.Lua.Lua.LUA_COPYRIGHT">35<summary>3637</summary>38</member>39<member name="F:Tao.Lua.Lua.LUA_AUTHORS">40<summary>4142</summary>43</member>44<member name="F:Tao.Lua.Lua.LUA_SIGNATURE">45<summary>4647</summary>48</member>49<member name="F:Tao.Lua.Lua.LUA_MULTRET">50<summary>5152</summary>53</member>54<member name="F:Tao.Lua.Lua.LUA_REGISTRYINDEX">55<summary>5657</summary>58</member>59<member name="F:Tao.Lua.Lua.LUA_ENVIRONINDEX">60<summary>6162</summary>63</member>64<member name="F:Tao.Lua.Lua.LUA_GLOBALSINDEX">65<summary>6667</summary>68</member>69<member name="F:Tao.Lua.Lua.LUA_YIELDSTATUS">70<summary>7172</summary>73</member>74<member name="F:Tao.Lua.Lua.LUA_ERRRUN">75<summary>7677</summary>78</member>79<member name="F:Tao.Lua.Lua.LUA_ERRSYNTAX">80<summary>8182</summary>83</member>84<member name="F:Tao.Lua.Lua.LUA_ERRMEM">85<summary>8687</summary>88</member>89<member name="F:Tao.Lua.Lua.LUA_ERRERR">90<summary>9192</summary>93</member>94<member name="F:Tao.Lua.Lua.LUA_TNONE">95<summary>9697</summary>98</member>99<member name="F:Tao.Lua.Lua.LUA_TNIL">100<summary>101102</summary>103</member>104<member name="F:Tao.Lua.Lua.LUA_TBOOLEAN">105<summary>106107</summary>108</member>109<member name="F:Tao.Lua.Lua.LUA_TLIGHTUSERDATA">110<summary>111112</summary>113</member>114<member name="F:Tao.Lua.Lua.LUA_TNUMBER">115<summary>116117</summary>118</member>119<member name="F:Tao.Lua.Lua.LUA_TSTRING">120<summary>121122</summary>123</member>124<member name="F:Tao.Lua.Lua.LUA_TTABLE">125<summary>126127</summary>128</member>129<member name="F:Tao.Lua.Lua.LUA_TFUNCTION">130<summary>131132</summary>133</member>134<member name="F:Tao.Lua.Lua.LUA_TUSERDATA">135<summary>136137</summary>138</member>139<member name="F:Tao.Lua.Lua.LUA_TTHREAD">140<summary>141142</summary>143</member>144<member name="F:Tao.Lua.Lua.LUA_MINSTACK">145<summary>146Minimum Lua stack available to a C function147</summary>148</member>149<member name="F:Tao.Lua.Lua.LUA_GCSTOP">150<summary>151152</summary>153</member>154<member name="F:Tao.Lua.Lua.LUA_GCRESTART">155<summary>156157</summary>158</member>159<member name="F:Tao.Lua.Lua.LUA_GCCOLLECT">160<summary>161162</summary>163</member>164<member name="F:Tao.Lua.Lua.LUA_GCCOUNT">165<summary>166167</summary>168</member>169<member name="F:Tao.Lua.Lua.LUA_GCCOUNTB">170<summary>171172</summary>173</member>174<member name="F:Tao.Lua.Lua.LUA_GCSTEP">175<summary>176177</summary>178</member>179<member name="F:Tao.Lua.Lua.LUA_GCSETPAUSE">180<summary>181182</summary>183</member>184<member name="F:Tao.Lua.Lua.LUA_GCSETSTEPMUL">185<summary>186187</summary>188</member>189<member name="F:Tao.Lua.Lua.LUA_HOOKCALL">190<summary>191192</summary>193</member>194<member name="F:Tao.Lua.Lua.LUA_HOOKRET">195<summary>196197</summary>198</member>199<member name="F:Tao.Lua.Lua.LUA_HOOKLINE">200<summary>201202</summary>203</member>204<member name="F:Tao.Lua.Lua.LUA_HOOKCOUNT">205<summary>206207</summary>208</member>209<member name="F:Tao.Lua.Lua.LUA_HOOKTAILRET">210<summary>211212</summary>213</member>214<member name="F:Tao.Lua.Lua.LUA_MASKCALL">215<summary>216217</summary>218</member>219<member name="F:Tao.Lua.Lua.LUA_MASKRET">220<summary>221222</summary>223</member>224<member name="F:Tao.Lua.Lua.LUA_MASKLINE">225<summary>226227</summary>228</member>229<member name="F:Tao.Lua.Lua.LUA_MASKCOUNT">230<summary>231232</summary>233</member>234<member name="F:Tao.Lua.Lua.LUA_FILEHANDLE">235<summary>236237</summary>238</member>239<member name="F:Tao.Lua.Lua.LUA_COLIBNAME">240<summary>241242</summary>243</member>244<member name="F:Tao.Lua.Lua.LUA_TABLIBNAME">245<summary>246247</summary>248</member>249<member name="F:Tao.Lua.Lua.LUA_IOLIBNAME">250<summary>251252</summary>253</member>254<member name="F:Tao.Lua.Lua.LUA_OSLIBNAME">255<summary>256257</summary>258</member>259<member name="F:Tao.Lua.Lua.LUA_STRLIBNAME">260<summary>261262</summary>263</member>264<member name="F:Tao.Lua.Lua.LUA_MATHLIBNAME">265<summary>266267</summary>268</member>269<member name="F:Tao.Lua.Lua.LUA_DBLIBNAME">270<summary>271272</summary>273</member>274<member name="F:Tao.Lua.Lua.LUA_LOADLIBNAME">275<summary>276277</summary>278</member>279<member name="F:Tao.Lua.Lua.LUA_ERRFILE">280<summary>281282</summary>283</member>284<member name="F:Tao.Lua.Lua.LUA_NOREF">285<summary>286287</summary>288</member>289<member name="F:Tao.Lua.Lua.LUA_RENIL">290<summary>291292</summary>293</member>294<member name="F:Tao.Lua.Lua.LUA_IDSIZE">295<summary>296297</summary>298</member>299<member name="F:Tao.Lua.Lua.UA_PROMPT">300<summary>301302</summary>303</member>304<member name="F:Tao.Lua.Lua.LUA_PROMT2">305<summary>306307</summary>308</member>309<member name="F:Tao.Lua.Lua.LUA_PROGNAME">310<summary>311312</summary>313</member>314<member name="F:Tao.Lua.Lua.LUA_MAXINPUT">315<summary>316317</summary>318</member>319<member name="F:Tao.Lua.Lua.LUAI_GCPAUSE">320<summary>321322</summary>323</member>324<member name="F:Tao.Lua.Lua.LUAI_GCMUL">325<summary>326327</summary>328</member>329<member name="F:Tao.Lua.Lua.LUA_COMPAT_LSTR">330<summary>331332</summary>333</member>334<member name="F:Tao.Lua.Lua.LUAI_MAXCALLS">335<summary>336337</summary>338</member>339<member name="F:Tao.Lua.Lua.LUAI_MAXCSTACK">340<summary>341342</summary>343</member>344<member name="F:Tao.Lua.Lua.LUAI_MAXCCALLS">345<summary>346347</summary>348</member>349<member name="F:Tao.Lua.Lua.LUAI_MAXVARS">350<summary>351352</summary>353</member>354<member name="F:Tao.Lua.Lua.LUAI_MAXUPVALUES">355<summary>356357</summary>358</member>359<member name="F:Tao.Lua.Lua.LUAL_BUFFERSIZE">360<summary>361362</summary>363</member>364<member name="F:Tao.Lua.Lua.LUA_MAXCAPTURES">365<summary>366367</summary>368</member>369<member name="F:Tao.Lua.Lua.LUAI_EXTRASPACE">370<summary>371372</summary>373</member>374<member name="M:Tao.Lua.Lua.lua_upvalueindex(System.Int32)">375<summary>376377</summary>378<param name="i"></param>379<returns></returns>380</member>381<member name="M:Tao.Lua.Lua.lua_newstate(Tao.Lua.Lua.lua_Alloc,System.IntPtr)">382<summary>383Creates a new, independent state.384</summary>385<param name="f">The argument f is the allocator function.</param>386<param name="ud">The second argument, ud, is an opaque pointer that Lua simply passes to the allocator in every call.</param>387<returns>Returns NULL if cannot create the state (due to lack of memory).</returns>388<remarks>Lua does all memory allocation for this state through this function.</remarks>389</member>390<member name="M:Tao.Lua.Lua.lua_close(System.IntPtr)">391<summary>392Destroys all objects in the given Lua state (calling the corresponding393garbage-collection metamethods, if any) and frees all dynamic memory used394by this state. On several platforms, you may not need to call this function,395because all resources are naturally released when the host program ends. On396the other hand, long-running programs, such as a daemon or a web server, might397need to release states as soon as they are not needed, to avoid growing too large.398</summary>399<param name="L"></param>400</member>401<member name="M:Tao.Lua.Lua.lua_newthread(System.IntPtr)">402<summary>403Creates a new thread, pushes it on the stack, and returns a pointer404to a lua_State that represents this new thread. The new state returned405by this function shares with the original state all global objects406(such as tables), but has an independent execution stack.407</summary>408<param name="L"></param>409<returns></returns>410<remarks>411There is no explicit function to close or to destroy a thread. Threads412are subject to garbage collection, like any Lua object.413</remarks>414</member>415<member name="M:Tao.Lua.Lua.lua_atpanic(System.IntPtr,Tao.Lua.Lua.lua_CFunction)">416<summary>417418</summary>419<param name="L"></param>420<param name="panicf"></param>421<returns></returns>422</member>423<member name="M:Tao.Lua.Lua.lua_gettop(System.IntPtr)">424<summary>425Returns the index of the top element in the stack. Because indices426start at 1, this result is equal to the number of elements in the427stack (and so 0 means an empty stack).428</summary>429<param name="L"></param>430<returns></returns>431</member>432<member name="M:Tao.Lua.Lua.lua_settop(System.IntPtr,System.Int32)">433<summary>434Accepts any acceptable index, or 0, and sets the stack top to this index. If the new top is larger than the old one, then the new elements are filled with nil. If index is 0, then all stack elements are removed.435</summary>436<param name="L"></param>437<param name="idx"></param>438</member>439<member name="M:Tao.Lua.Lua.lua_pushvalue(System.IntPtr,System.Int32)">440<summary>441Pushes a copy of the element at the given valid index onto the stack.442</summary>443<param name="L"></param>444<param name="idx"></param>445</member>446<member name="M:Tao.Lua.Lua.lua_remove(System.IntPtr,System.Int32)">447<summary>448Removes the element at the given valid index, shifting down449the elements above this index to fill the gap. Cannot be called450with a pseudo-index, because a pseudo-index is not an actual451stack position.452</summary>453<param name="L"></param>454<param name="idx"></param>455</member>456<member name="M:Tao.Lua.Lua.lua_insert(System.IntPtr,System.Int32)">457<summary>458Moves the top element into the given valid index, shifting up459the elements above this index to open space. Cannot be called460with a pseudo-index, because a pseudo-index is not an actual461stack position.462</summary>463<param name="L"></param>464<param name="idx"></param>465</member>466<member name="M:Tao.Lua.Lua.lua_replace(System.IntPtr,System.Int32)">467<summary>468Moves the top element into the given position (and pops it), without shifting469any element (therefore replacing the value at the given position).470</summary>471<param name="L"></param>472<param name="idx"></param>473</member>474<member name="M:Tao.Lua.Lua.lua_checkstack(System.IntPtr,System.Int32)">475<summary>476Ensures that there are at least extra free stack slots in the stack. It returns477false if it cannot grow the stack to that size. This function never shrinks the478stack; if the stack is already larger than the new size, it is left unchanged.479</summary>480<param name="L"></param>481<param name="sz"></param>482<returns></returns>483</member>484<member name="M:Tao.Lua.Lua.lua_xmove(System.IntPtr,System.IntPtr,System.Int32)">485<summary>486Exchange values between different threads of the same global state.487</summary>488<param name="from"></param>489<param name="to"></param>490<param name="n"></param>491<remarks>492This function pops n values from the stack from, and pushes them onto the stack to.493</remarks>494</member>495<member name="M:Tao.Lua.Lua.lua_isnumber(System.IntPtr,System.Int32)">496<summary>497Returns 1 if the value at the given acceptable index is a number498or a string convertible to a number, and 0 otherwise.499</summary>500<param name="L"></param>501<param name="idx"></param>502<returns></returns>503</member>504<member name="M:Tao.Lua.Lua.lua_isstring(System.IntPtr,System.Int32)">505<summary>506Returns 1 if the value at the given acceptable index is a507string or a number (which is always convertible to a string),508and 0 otherwise.509</summary>510<param name="L"></param>511<param name="idx"></param>512<returns></returns>513</member>514<member name="M:Tao.Lua.Lua.lua_iscfunction(System.IntPtr,System.Int32)">515<summary>516Returns 1 if the value at the given acceptable index is517a C function, and 0 otherwise.518</summary>519<param name="L"></param>520<param name="idx"></param>521<returns></returns>522</member>523<member name="M:Tao.Lua.Lua.lua_isuserdata(System.IntPtr,System.Int32)">524<summary>525Returns 1 if the value at the given acceptable index is a526userdata (either full or light), and 0 otherwise.527</summary>528<param name="L"></param>529<param name="idx"></param>530<returns></returns>531</member>532<member name="M:Tao.Lua.Lua.lua_type(System.IntPtr,System.Int32)">533<summary>534Returns the type of the value in the given acceptable index, or LUA_TNONE for a non-valid index (that is, an index to an "empty" stack position). The types returned by lua_type are coded by the following constants defined in lua.h: LUA_TNIL, LUA_TNUMBER, LUA_TBOOLEAN, LUA_TSTRING, LUA_TTABLE, LUA_TFUNCTION, LUA_TUSERDATA, LUA_TTHREAD, and LUA_TLIGHTUSERDATA.535</summary>536<param name="L"></param>537<param name="idx"></param>538<returns></returns>539</member>540<member name="M:Tao.Lua.Lua.lua_typename(System.IntPtr,System.Int32)">541<summary>542Returns the name of the type encoded by the value tp, which must be one the values returned by lua_type.543</summary>544<param name="L"></param>545<param name="tp"></param>546<returns></returns>547</member>548<member name="M:Tao.Lua.Lua.lua_equal(System.IntPtr,System.Int32,System.Int32)">549<summary>550Returns 1 if the two values in acceptable indices index1551and index2 are equal, following the semantics of the Lua == operator552(that is, may call metamethods). Otherwise returns 0. Also returns5530 if any of the indices is non valid.554</summary>555<param name="L"></param>556<param name="idx1"></param>557<param name="idx2"></param>558<returns></returns>559</member>560<member name="M:Tao.Lua.Lua.lua_rawequal(System.IntPtr,System.Int32,System.Int32)">561<summary>562Returns 1 if the two values in acceptable indices index1 and index2563are primitively equal (that is, without calling metamethods). Otherwise564returns 0. Also returns 0 if any of the indices are non valid.565</summary>566<param name="L"></param>567<param name="idx1"></param>568<param name="idx2"></param>569<returns></returns>570</member>571<member name="M:Tao.Lua.Lua.lua_lessthan(System.IntPtr,System.Int32,System.Int32)">572<summary>573Returns 1 if the value at acceptable index index1 is smaller574than the value at acceptable index index2, following the semantics575of the Lua less then operator (that is, may call metamethods).576Otherwise returns 0. Also returns 0 if any of the indices is non valid.577</summary>578<param name="L"></param>579<param name="idx1"></param>580<param name="idx2"></param>581<returns></returns>582</member>583<member name="M:Tao.Lua.Lua.lua_tonumber(System.IntPtr,System.Int32)">584<summary>585Converts the Lua value at the given acceptable index to a number (see lua_Number). The Lua value must be a number or a string convertible to a number (see §2.2.1); otherwise, lua_tonumber returns 0.586</summary>587<param name="L"></param>588<param name="idx"></param>589<returns></returns>590</member>591<member name="M:Tao.Lua.Lua.lua_tointeger(System.IntPtr,System.Int32)">592<summary>593Converts the Lua value at the given acceptable index to the signed integral type lua_Integer. The Lua value must be a number or a string convertible to a number (see §2.2.1); otherwise, lua_tointeger returns 0.594</summary>595<param name="L"></param>596<param name="idx"></param>597<returns></returns>598<remarks>599If the number is not an integer, it is truncated in some non-specified way.600</remarks>601</member>602<member name="M:Tao.Lua.Lua.lua_toboolean(System.IntPtr,System.Int32)">603<summary>604Converts the Lua value at the given acceptable index to a C boolean value (0 or 1). Like all tests in Lua, lua_toboolean returns 1 for any Lua value different from false and nil; otherwise it returns 0. It also returns 0 when called with a non-valid index. (If you want to accept only actual boolean values, use lua_isboolean to test the value's type.)605</summary>606<param name="L"></param>607<param name="idx"></param>608<returns></returns>609</member>610<member name="M:Tao.Lua.Lua.lua_tolstring(System.IntPtr,System.Int32,System.Int32@)">611<summary>612Converts the Lua value at the given acceptable index to a string (const char*). If len is not NULL, it also sets *len with the string length. The Lua value must be a string or a number; otherwise, the function returns NULL. If the value is a number, then lua_tolstring also changes the actual value in the stack to a string. (This change confuses lua_next when lua_tolstring is applied to keys during a table traversal.)613</summary>614<param name="L"></param>615<param name="idx"></param>616<param name="len"></param>617<returns>618lua_tolstring returns a fully aligned pointer to a string inside the Lua state. This string always has a zero ('\0') after its last character (as in C), but may contain other zeros in its body. Because Lua has garbage collection, there is no guarantee that the pointer returned by lua_tolstring will be valid after the corresponding value is removed from the stack.619</returns>620</member>621<member name="M:Tao.Lua.Lua.lua_objlen(System.IntPtr,System.Int32)">622<summary>623Returns the "length" of the value at the given acceptable624index: for strings, this is the string length; for tables,625this is the result of the length operator ('#'); for userdata,626this is the size of the block of memory allocated for the627userdata; for other values, it is 0.628</summary>629<param name="L"></param>630<param name="idx"></param>631<returns></returns>632</member>633<member name="M:Tao.Lua.Lua.lua_tocfunction(System.IntPtr,System.Int32)">634<summary>635Converts a value at the given acceptable index to a C function. That value must be a C function; otherwise, returns NULL.636</summary>637<param name="L"></param>638<param name="idx"></param>639<returns></returns>640</member>641<member name="M:Tao.Lua.Lua.lua_touserdata(System.IntPtr,System.Int32)">642<summary>643If the value at the given acceptable index is a full userdata, returns its block address. If the value is a light userdata, returns its pointer. Otherwise, returns NULL.644</summary>645<param name="L"></param>646<param name="idx"></param>647<returns></returns>648</member>649<member name="M:Tao.Lua.Lua.lua_tothread(System.IntPtr,System.Int32)">650<summary>651Converts the value at the given acceptable index to a Lua thread (represented as lua_State*). This value must be a thread; otherwise, the function returns NULL.652</summary>653<param name="L"></param>654<param name="idx"></param>655<returns></returns>656</member>657<member name="M:Tao.Lua.Lua.lua_topointer(System.IntPtr,System.Int32)">658<summary>659Converts the value at the given acceptable index to a generic C pointer (void*). The value may be a userdata, a table, a thread, or a function; otherwise, lua_topointer returns NULL. Different objects will give different pointers. There is no way to convert the pointer back to its original value.660</summary>661<param name="L"></param>662<param name="idx"></param>663<returns></returns>664<remarks>665Typically this function is used only for debug information.666</remarks>667</member>668<member name="M:Tao.Lua.Lua.lua_pushnil(System.IntPtr)">669<summary>670Pushes a nil value onto the stack.671</summary>672<param name="L"></param>673</member>674<member name="M:Tao.Lua.Lua.lua_pushnumber(System.IntPtr,System.Double)">675<summary>676Pushes a number with value n onto the stack.677</summary>678<param name="L"></param>679<param name="n"></param>680</member>681<member name="M:Tao.Lua.Lua.lua_pushinteger(System.IntPtr,System.Int32)">682<summary>683Pushes a number with value n onto the stack.684</summary>685<param name="L"></param>686<param name="n"></param>687</member>688<member name="M:Tao.Lua.Lua.lua_pushlstring(System.IntPtr,System.String,System.UInt32)">689<summary>690Pushes the string pointed to by s with size len onto the stack. Lua691makes (or reuses) an internal copy of the given string, so the692memory at s can be freed or reused immediately after the function693returns. The string can contain embedded zeros.694</summary>695<param name="L"></param>696<param name="s"></param>697<param name="l"></param>698</member>699<member name="M:Tao.Lua.Lua.lua_pushstring(System.IntPtr,System.String)">700<summary>701Pushes the zero-terminated string pointed to by s onto the stack. Lua702makes (or reuses) an internal copy of the given string, so the memory703at s can be freed or reused immediately after the function returns. The704string cannot contain embedded zeros; it is assumed to end at the first zero.705</summary>706<param name="L"></param>707<param name="s"></param>708</member>709<member name="M:Tao.Lua.Lua.lua_pushcclosure(System.IntPtr,Tao.Lua.Lua.lua_CFunction,System.Int32)">710<summary>711Pushes a new C closure onto the stack.712</summary>713<param name="L"></param>714<param name="fn"></param>715<param name="n"></param>716<remarks>717When a C function is created, it is possible to associate some values718with it, thus creating a C closure (see §3.4); these values are then719accessible to the function whenever it is called. To associate values720with a C function, first these values should be pushed onto the stack721(when there are multiple values, the first value is pushed first).722Then lua_pushcclosure is called to create and push the C function onto723the stack, with the argument n telling how many values should be724associated with the function. lua_pushcclosure also pops these values725from the stack.726</remarks>727</member>728<member name="M:Tao.Lua.Lua.lua_pushboolean(System.IntPtr,System.Int32)">729<summary>730Pushes a boolean value with value b onto the stack.731</summary>732<param name="L"></param>733<param name="b"></param>734</member>735<member name="M:Tao.Lua.Lua.lua_pushlightuserdata(System.IntPtr,System.IntPtr)">736<summary>737Pushes a light userdata onto the stack.738</summary>739<param name="L"></param>740<param name="p"></param>741<remarks>742Userdata represents C values in Lua. A light userdata represents743a pointer. It is a value (like a number): you do not create it, it has744no individual metatable, and it is not collected (as it was never745created). A light userdata is equal to "any" light userdata with746the same C address.747</remarks>748</member>749<member name="M:Tao.Lua.Lua.lua_pushthread(System.IntPtr)">750<summary>751Pushes the thread represented by L onto the stack.752</summary>753<param name="L"></param>754<returns>755Returns 1 if this thread is the main thread of its state.756</returns>757</member>758<member name="M:Tao.Lua.Lua.lua_gettable(System.IntPtr,System.Int32)">759<summary>760Pushes onto the stack the value t[k], where t is the value at the given761valid index index and k is the value at the top of the stack.762</summary>763<param name="L"></param>764<param name="idx"></param>765<remarks>766This function pops the key from the stack (putting the resulting value in767its place). As in Lua, this function may trigger a metamethod for the768"index" event.769</remarks>770</member>771<member name="M:Tao.Lua.Lua.lua_getfield(System.IntPtr,System.Int32,System.String)">772<summary>773Pushes onto the stack the value t[k], where t is the value at the774given valid index index. As in Lua, this function may trigger a775metamethod for the "index" event776</summary>777<param name="L"></param>778<param name="idx"></param>779<param name="k"></param>780</member>781<member name="M:Tao.Lua.Lua.lua_rawget(System.IntPtr,System.Int32)">782<summary>783Similar to lua_gettable, but does a raw access (i.e., without784metamethods).785</summary>786<param name="L"></param>787<param name="idx"></param>788</member>789<member name="M:Tao.Lua.Lua.lua_rawgeti(System.IntPtr,System.Int32,System.Int32)">790<summary>791Pushes onto the stack the value t[n], where t is the value at the given792valid index index. The access is raw; that is, it does not invoke metamethods.793</summary>794<param name="L"></param>795<param name="idx"></param>796<param name="n"></param>797</member>798<member name="M:Tao.Lua.Lua.lua_createtable(System.IntPtr,System.Int32,System.Int32)">799<summary>800Creates a new empty table and pushes it onto the stack. The new table801has space pre-allocated for narr array elements and nrec non-array elements.802This pre-allocation is useful when you know exactly how many elements the table803will have. Otherwise you can use the function lua_newtable.804</summary>805<param name="L"></param>806<param name="narr"></param>807<param name="nrec"></param>808</member>809<member name="M:Tao.Lua.Lua.lua_newuserdata(System.IntPtr,System.UInt32)">810<summary>811This function allocates a new block of memory with the given812size, pushes onto the stack a new full userdata with the block813address, and returns this address.814</summary>815<param name="L"></param>816<param name="sz"></param>817<returns></returns>818<remarks>819Userdata represents C values in Lua. A full userdata represents820a block of memory. It is an object (like a table): you must create it,821it can have its own metatable, and you can detect when it is being822collected. A full userdata is only equal to itself (under raw equality).823824When Lua collects a full userdata with a gc metamethod, Lua calls the825metamethod and marks the userdata as finalized. When this userdata is826collected again then Lua frees its corresponding memory.827</remarks>828</member>829<member name="M:Tao.Lua.Lua.lua_getmetatable(System.IntPtr,System.Int32)">830<summary>831Pushes onto the stack the metatable of the value at the given832acceptable index. If the index is not valid, or if the value833does not have a metatable, the function returns 0 and pushes834nothing on the stack.835</summary>836<param name="L"></param>837<param name="objindex"></param>838<returns></returns>839</member>840<member name="M:Tao.Lua.Lua.lua_getfenv(System.IntPtr,System.Int32)">841<summary>842Pushes onto the stack the environment table of the value at the given index.843</summary>844<param name="L"></param>845<param name="idx"></param>846</member>847<member name="M:Tao.Lua.Lua.lua_settable(System.IntPtr,System.Int32)">848<summary>849Does the equivalent to t[k] = v, where t is the value at the given valid index index, v is the value at the top of the stack, and k is the value just below the top.850</summary>851<param name="L"></param>852<param name="idx"></param>853<remarks>854This function pops both the key and the value from the stack. As in Lua, this function may trigger a metamethod for the "newindex" event855</remarks>856</member>857<member name="M:Tao.Lua.Lua.lua_setfield(System.IntPtr,System.Int32,System.String)">858<summary>859Does the equivalent to t[k] = v, where t is the value at the860given valid index index and v is the value at the top of the stack,861</summary>862<param name="L"></param>863<param name="idx"></param>864<param name="k"></param>865<remarks>866This function pops the value from the stack. As in Lua, this867function may trigger a metamethod for the "newindex" event868</remarks>869</member>870<member name="M:Tao.Lua.Lua.lua_rawset(System.IntPtr,System.Int32)">871<summary>872Similar to lua_settable, but does a raw assignment (i.e., without873metamethods).874</summary>875<param name="L"></param>876<param name="idx"></param>877</member>878<member name="M:Tao.Lua.Lua.lua_rawseti(System.IntPtr,System.Int32,System.Int32)">879<summary>880Does the equivalent of t[n] = v, where t is the value at the given valid index index and v881is the value at the top of the stack,882</summary>883<param name="L"></param>884<param name="idx"></param>885<param name="n"></param>886<remarks>887This function pops the value from the stack. The assignment is888raw; that is, it does not invoke metamethods.889</remarks>890</member>891<member name="M:Tao.Lua.Lua.lua_setmetatable(System.IntPtr,System.Int32)">892<summary>893Pops a table from the stack and sets it as the new metatable for the value at the given acceptable index.894</summary>895<param name="L"></param>896<param name="objindex"></param>897<returns></returns>898</member>899<member name="M:Tao.Lua.Lua.lua_setfenv(System.IntPtr,System.Int32)">900<summary>901Pops a table from the stack and sets it as the new902environment for the value at the given index.903</summary>904<param name="L"></param>905<param name="idx"></param>906<returns>907If the value at the given index is neither a function nor a908thread nor a userdata, lua_setfenv returns 0. Otherwise it returns 1.909</returns>910</member>911<member name="M:Tao.Lua.Lua.lua_call(System.IntPtr,System.Int32,System.Int32)">912<summary>913914</summary>915<param name="L"></param>916<param name="nargs"></param>917<param name="nresults"></param>918</member>919<member name="M:Tao.Lua.Lua.lua_pcall(System.IntPtr,System.Int32,System.Int32,System.Int32)">920<summary>921Calls a function in protected mode.922</summary>923<param name="L"></param>924<param name="nargs">925Both nargs and nresults have the same meaning as in lua_call. If there are926no errors during the call, lua_pcall behaves exactly like lua_call. However,927if there is any error, lua_pcall catches it, pushes a single value on the928stack (the error message), and returns an error code. Like lua_call,929lua_pcall always removes the function and its arguments from the stack.930</param>931<param name="nresults">932Both nargs and nresults have the same meaning as in lua_call. If there are933no errors during the call, lua_pcall behaves exactly like lua_call. However,934if there is any error, lua_pcall catches it, pushes a single value on the935stack (the error message), and returns an error code. Like lua_call,936lua_pcall always removes the function and its arguments from the stack.937</param>938<param name="errfunc">939If errfunc is 0, then the error message returned on the stack is exactly940the original error message. Otherwise, errfunc is the stack index of an error941handler function. (In the current implementation, this index cannot be a942pseudo-index.) In case of runtime errors, this function will be called with943the error message and its return value will be the message returned on the944stack by lua_pcall.945</param>946<returns>947The lua_pcall function returns 0 in case of success or one of the following error codes (defined in lua.h):948LUA_ERRRUN: a runtime error.949LUA_ERRMEM: memory allocation error. For such errors, Lua does not call the error handler function.950LUA_ERRERR: error while running the error handler function.951</returns>952<remarks>953Typically, the error handler function is used to add more debug information954to the error message, such as a stack traceback. Such information cannot955be gathered after the return of lua_pcall, since by then the stack has unwound.956</remarks>957</member>958<member name="M:Tao.Lua.Lua.lua_cpcall(System.IntPtr,Tao.Lua.Lua.lua_CFunction,System.IntPtr)">959<summary>960Calls the C function func in protected mode. func starts with only one961element in its stack, a light userdata containing ud. In case of errors,962lua_cpcall returns the same error codes as lua_pcall, plus the error object963on the top of the stack; otherwise, it returns zero, and does not change964the stack. All values returned by func are discarded.965</summary>966<param name="L"></param>967<param name="func"></param>968<param name="ud"></param>969<returns></returns>970</member>971<member name="M:Tao.Lua.Lua.lua_load(System.IntPtr,Tao.Lua.Lua.lua_Reader,System.IntPtr,System.String)">972<summary>973Loads a Lua chunk. If there are no errors, lua_load pushes the compiled974chunk as a Lua function on top of the stack. Otherwise, it pushes an975error message.976</summary>977<param name="L"></param>978<param name="reader"></param>979<param name="data">The data argument is an opaque value passed to the reader function.</param>980<param name="chunkname">The chunkname argument gives a name to the chunk, which is used for error messages and in debug information.</param>981<returns>0: no errors. LUA_ERRSYNTAX: syntax error during pre-compilation. LUA_ERRMEM: memory allocation error.</returns>982<remarks>This function only loads a chunk; it does not run it. lua_load automatically detects whether the chunk is text or binary, and loads it accordingly (see program luac). lua_load uses a user-supplied reader function to read the chunk (see lua_Reader).</remarks>983</member>984<member name="M:Tao.Lua.Lua.lua_dump(System.IntPtr,Tao.Lua.Lua.lua_Writer,System.IntPtr)">985<summary>986Dumps a function as a binary chunk. Receives a Lua function on the987top of the stack and produces a binary chunk that, if loaded again,988results in a function equivalent to the one dumped. As it produces989parts of the chunk, lua_dump calls function writer (see lua_Writer)990with the given data to write them.991</summary>992<param name="L"></param>993<param name="writer"></param>994<param name="data"></param>995<returns>996The value returned is the error code returned by the last call to997the writer; 0 means no errors.998</returns>999<remarks>1000This function does not pop the Lua function from the stack.1001</remarks>1002</member>1003<member name="M:Tao.Lua.Lua.lua_yield(System.IntPtr,System.Int32)">1004<summary>1005Yields a coroutine.1006</summary>1007<param name="L"></param>1008<param name="nresults"></param>1009<returns></returns>1010<remarks>1011When a C function calls lua_yield in that way, the running coroutine suspends its execution, and the call to lua_resume that started this coroutine returns. The parameter nresults is the number of values from the stack that are passed as results to lua_resume.1012</remarks>1013</member>1014<member name="M:Tao.Lua.Lua.lua_resume(System.IntPtr,System.Int32)">1015<summary>1016Starts and resumes a coroutine in a given thread.1017</summary>1018<param name="L"></param>1019<param name="narg"></param>1020<returns>1021When it returns, the stack contains all values passed to lua_yield, or1022all values returned by the body function. lua_resume returns LUA_YIELD1023if the coroutine yields, 0 if the coroutine finishes its execution without1024errors, or an error code in case of errors (see lua_pcall). In case of1025errors, the stack is not unwound, so you can use the debug API over it. The1026error message is on the top of the stack.1027</returns>1028<remarks>1029To start a coroutine, you first create a new thread (see lua_newthread);1030then you push onto its stack the main function plus any arguments;1031then you call lua_resume, with narg being the number of arguments.1032This call returns when the coroutine suspends or finishes its execution.1033To restart a coroutine, you put on its stack only the values to be passed1034as results from yield, and then call lua_resume.1035</remarks>1036</member>1037<member name="M:Tao.Lua.Lua.lua_status(System.IntPtr)">1038<summary>1039Returns the status of the thread L.1040</summary>1041<param name="L"></param>1042<returns></returns>1043<remarks>1044The status can be 0 for a normal thread, an error code if the thread finished its execution with an error, or LUA_YIELD if the thread is suspended.1045</remarks>1046</member>1047<member name="M:Tao.Lua.Lua.lua_gc(System.IntPtr,System.Int32,System.Int32)">1048<summary>1049Controls the garbage collector.1050</summary>1051<param name="L"></param>1052<param name="what"></param>1053<param name="data"></param>1054<returns></returns>1055<remarks>1056This function performs several tasks, according to the value of the parameter what:1057LUA_GCSTOP: stops the garbage collector.1058LUA_GCRESTART: restarts the garbage collector.1059LUA_GCCOLLECT: performs a full garbage-collection cycle.1060LUA_GCCOUNT: returns the current amount of memory (in Kbytes) in use by Lua.1061LUA_GCCOUNTB: returns the remainder of dividing the current amount of bytes of memory in use by Lua by 1024.1062LUA_GCSTEP: performs an incremental step of garbage collection. The step "size" is controlled by data (larger values mean more steps) in a non-specified way. If you want to control the step size you must experimentally tune the value of data. The function returns 1 if the step finished a garbage-collection cycle.1063LUA_GCSETPAUSE: sets data/100 as the new value for the pause of the collector (see §2.10). The function returns the previous value of the pause.1064LUA_GCSETSTEPMUL: sets arg/100 as the new value for the step multiplier of the collector (see §2.10). The function returns the previous value of the step multiplier.1065</remarks>1066</member>1067<member name="M:Tao.Lua.Lua.lua_error(System.IntPtr)">1068<summary>1069Generates a Lua error. The error message (which can actually1070be a Lua value of any type) must be on the stack top. This function1071does a long jump, and therefore never returns. (see luaL_error).1072</summary>1073<param name="L"></param>1074<returns></returns>1075</member>1076<member name="M:Tao.Lua.Lua.lua_next(System.IntPtr,System.Int32)">1077<summary>1078Pops a key from the stack, and pushes a key-value pair from the1079table at the given index (the "next" pair after the given key).1080</summary>1081<param name="L"></param>1082<param name="idx"></param>1083<returns>1084If there are no more elements in the table, then lua_next1085returns 0 (and pushes nothing).1086</returns>1087</member>1088<member name="M:Tao.Lua.Lua.lua_concat(System.IntPtr,System.Int32)">1089<summary>1090Concatenates the n values at the top of the stack, pops them, and leaves1091the result at the top. If n is 1, the result is the single string on1092the stack (that is, the function does nothing); if n is 0, the result1093is the empty string. Concatenation is done following the usual semantics1094of Lua.1095</summary>1096<param name="L"></param>1097<param name="n"></param>1098</member>1099<member name="M:Tao.Lua.Lua.lua_getallocf(System.IntPtr,System.IntPtr)">1100<summary>1101Returns the memory-allocation function of a given state.1102If ud is not NULL, Lua stores in *ud the opaque pointer1103passed to lua_newstate.1104</summary>1105<param name="L"></param>1106<param name="ud"></param>1107<returns></returns>1108</member>1109<member name="M:Tao.Lua.Lua.lua_setallocf(System.IntPtr,Tao.Lua.Lua.lua_Alloc,System.IntPtr)">1110<summary>1111Changes the allocator function of a given state to f with1112user data ud.1113</summary>1114<param name="L"></param>1115<param name="f"></param>1116<param name="ud"></param>1117<returns></returns>1118</member>1119<member name="M:Tao.Lua.Lua.lua_pop(System.IntPtr,System.Int32)">1120<summary>1121Pops n elements from the stack.1122</summary>1123<param name="L"></param>1124<param name="n"></param>1125</member>1126<member name="M:Tao.Lua.Lua.lua_newtable(System.IntPtr)">1127<summary>1128Creates a new empty table and pushes it onto the stack.1129</summary>1130<param name="L"></param>1131<remarks>It is equivalent to lua_createtable(L, 0, 0).</remarks>1132</member>1133<member name="M:Tao.Lua.Lua.lua_register(System.IntPtr,System.String,Tao.Lua.Lua.lua_CFunction)">1134<summary>1135Sets the C function f as the new value of global name.1136</summary>1137<param name="L"></param>1138<param name="n"></param>1139<param name="f"></param>1140</member>1141<member name="M:Tao.Lua.Lua.lua_pushcfunction(System.IntPtr,Tao.Lua.Lua.lua_CFunction)">1142<summary>1143Pushes a C function onto the stack. This function receives a pointer1144to a C function and pushes onto the stack a Lua value of type function1145that, when called, invokes the corresponding C function.1146</summary>1147<param name="L"></param>1148<param name="f"></param>1149<remarks>1150Any function to be registered in Lua must follow the correct protocol1151to receive its parameters and return its results1152</remarks>1153</member>1154<member name="M:Tao.Lua.Lua.lua_strlen(System.IntPtr,System.Int32)">1155<summary>11561157</summary>1158<param name="L"></param>1159<param name="i"></param>1160<returns></returns>1161</member>1162<member name="M:Tao.Lua.Lua.lua_isfunction(System.IntPtr,System.Int32)">1163<summary>1164Returns 1 if the value at the given acceptable index is a1165function (either C or Lua), and 0 otherwise.1166</summary>1167<param name="L"></param>1168<param name="n"></param>1169<returns></returns>1170</member>1171<member name="M:Tao.Lua.Lua.lua_istable(System.IntPtr,System.Int32)">1172<summary>1173Returns 1 if the value at the given acceptable index is a1174table, and 0 otherwise.1175</summary>1176<param name="L"></param>1177<param name="n"></param>1178<returns></returns>1179</member>1180<member name="M:Tao.Lua.Lua.lua_islightuserdata(System.IntPtr,System.Int32)">1181<summary>1182Returns 1 if the value at the given acceptable index is a light1183userdata, and 0 otherwise.1184</summary>1185<param name="L"></param>1186<param name="n"></param>1187<returns></returns>1188</member>1189<member name="M:Tao.Lua.Lua.lua_isnil(System.IntPtr,System.Int32)">1190<summary>1191Returns 1 if the value at the given acceptable index is nil,1192and 0 otherwise.1193</summary>1194<param name="L"></param>1195<param name="n"></param>1196<returns></returns>1197</member>1198<member name="M:Tao.Lua.Lua.lua_isboolean(System.IntPtr,System.Int32)">1199<summary>1200Returns 1 if the value at the given acceptable index has type boolean, and 0 otherwise.1201</summary>1202<param name="L"></param>1203<param name="n"></param>1204<returns></returns>1205</member>1206<member name="M:Tao.Lua.Lua.lua_isthread(System.IntPtr,System.Int32)">1207<summary>1208Returns 1 if the value at the given acceptable index is a1209thread, and 0 otherwise.1210</summary>1211<param name="L"></param>1212<param name="n"></param>1213<returns></returns>1214</member>1215<member name="M:Tao.Lua.Lua.lua_isnone(System.IntPtr,System.Int32)">1216<summary>12171218</summary>1219<param name="L"></param>1220<param name="n"></param>1221<returns></returns>1222</member>1223<member name="M:Tao.Lua.Lua.lua_isnoneornil(System.IntPtr,System.Int32)">1224<summary>12251226</summary>1227<param name="L"></param>1228<param name="n"></param>1229<returns></returns>1230</member>1231<member name="M:Tao.Lua.Lua.lua_pushliteral(System.IntPtr,System.String)">1232<summary>12331234</summary>1235<param name="L"></param>1236<param name="s"></param>1237</member>1238<member name="M:Tao.Lua.Lua.lua_setglobal(System.IntPtr,System.String)">1239<summary>1240Pops a value from the stack and sets it as the new value of global name.1241</summary>1242<param name="L"></param>1243<param name="s"></param>1244</member>1245<member name="M:Tao.Lua.Lua.lua_getglobal(System.IntPtr,System.String)">1246<summary>1247Pushes onto the stack the value of the global name.1248</summary>1249<param name="L"></param>1250<param name="s"></param>1251</member>1252<member name="M:Tao.Lua.Lua.lua_tostring(System.IntPtr,System.Int32)">1253<summary>1254Equivalent to lua_tolstring with len equal to NULL.1255</summary>1256<param name="L"></param>1257<param name="i"></param>1258<returns></returns>1259</member>1260<member name="M:Tao.Lua.Lua.lua_open">1261<summary>12621263</summary>1264<returns></returns>1265</member>1266<member name="M:Tao.Lua.Lua.lua_getregistry(System.IntPtr)">1267<summary>12681269</summary>1270<param name="L"></param>1271</member>1272<member name="M:Tao.Lua.Lua.lua_getgccount(System.IntPtr)">1273<summary>12741275</summary>1276<param name="L"></param>1277<returns></returns>1278</member>1279<member name="M:Tao.Lua.Lua.lua_getstack(System.IntPtr,System.Int32,Tao.Lua.Lua.lua_Debug@)">1280<summary>1281Get information about the interpreter runtime stack.1282</summary>1283<param name="L"></param>1284<param name="level"></param>1285<param name="ar"></param>1286<returns>When there are no errors, lua_getstack returns 1; when called with a level greater than the stack depth, it returns 0.</returns>1287<remarks>This function fills parts of a lua_Debug structure with an identification of the activation record of the function executing at a given level. Level 0 is the current running function, whereas level n+1 is the function that has called level n.</remarks>1288</member>1289<member name="M:Tao.Lua.Lua.lua_getinfo(System.IntPtr,System.String,Tao.Lua.Lua.lua_Debug@)">1290<summary>1291Returns information about a specific function or function invocation.1292</summary>1293<param name="L"></param>1294<param name="what"></param>1295<param name="ar"></param>1296<returns></returns>1297<remarks>1298To get information about a function invocation, the parameter ar must be a valid activation record that was filled by a previous call to lua_getstack or given as argument to a hook (see lua_Hook).1299</remarks>1300</member>1301<member name="M:Tao.Lua.Lua.lua_getlocal(System.IntPtr,Tao.Lua.Lua.lua_Debug@,System.Int32)">1302<summary>1303Gets information about a local variable of a given activation record.1304</summary>1305<param name="L"></param>1306<param name="ar">The parameter ar must be a valid activation record that was filled by a previous call to lua_getstack or given as argument to a hook (see lua_Hook).</param>1307<param name="n">The index n selects which local variable to inspect (1 is the first parameter or active local variable, and so on, until the last active local variable). lua_getlocal pushes the variable's value onto the stack and returns its name.</param>1308<returns>Returns NULL (and pushes nothing) when the index is greater than the number of active local variables.</returns>1309<remarks>1310Variable names starting with '(' (open parentheses) represent internal variables (loop control variables, temporaries, and C function locals).1311</remarks>1312</member>1313<member name="M:Tao.Lua.Lua.lua_setlocal(System.IntPtr,Tao.Lua.Lua.lua_Debug@,System.Int32)">1314<summary>1315Sets the value of a local variable of a given activation record1316</summary>1317<param name="L"></param>1318<param name="ar">Parameters ar and n are as in lua_getlocal (see lua_getlocal). lua_setlocal assigns the value at the top of the stack to the variable and returns its name. It also pops the value from the stack.</param>1319<param name="n">Parameters ar and n are as in lua_getlocal (see lua_getlocal). lua_setlocal assigns the value at the top of the stack to the variable and returns its name. It also pops the value from the stack.</param>1320<returns>Returns NULL (and pops nothing) when the index is greater than the number of active local variables.</returns>1321</member>1322<member name="M:Tao.Lua.Lua.lua_getupvalue(System.IntPtr,System.Int32,System.Int32)">1323<summary>1324Gets information about a closure's upvalue. (For Lua functions, upvalues are the external local variables that the function uses, and that are consequently included in its closure.) lua_getupvalue gets the index n of an upvalue, pushes the upvalue's value onto the stack, and returns its name. funcindex points to the closure in the stack. (Upvalues have no particular order, as they are active through the whole function. So, they are numbered in an arbitrary order.)1325</summary>1326<param name="L"></param>1327<param name="funcindex"></param>1328<param name="n"></param>1329<returns>Returns NULL (and pushes nothing) when the index is greater than the number of upvalues. For C functions, this function uses the empty string "" as a name for all upvalues.</returns>1330</member>1331<member name="M:Tao.Lua.Lua.lua_setupvalue(System.IntPtr,System.Int32,System.Int32)">1332<summary>1333Sets the value of a closure's upvalue. Parameters funcindex and n are as in lua_getupvalue (see lua_getupvalue). It assigns the value at the top of the stack to the upvalue and returns its name. It also pops the value from the stack.1334</summary>1335<param name="L"></param>1336<param name="funcindex"></param>1337<param name="n"></param>1338<returns>Returns NULL (and pops nothing) when the index is greater than the number of upvalues.</returns>1339</member>1340<member name="M:Tao.Lua.Lua.lua_sethook(System.IntPtr,Tao.Lua.Lua.lua_Hook,System.Int32,System.Int32)">1341<summary>1342Sets the debugging hook function.1343</summary>1344<param name="L"></param>1345<param name="func">func is the hook function.</param>1346<param name="mask">mask specifies on which events the hook will be called: it is formed by a bitwise or of the constants LUA_MASKCALL, LUA_MASKRET, LUA_MASKLINE, and LUA_MASKCOUNT.</param>1347<param name="count">The count argument is only meaningful when the mask includes LUA_MASKCOUNT.</param>1348<returns></returns>1349<remarks>1350For each event, the hook is called as explained below:1351* The call hook: is called when the interpreter calls a function. The hook is called just after Lua enters the new function, before the function gets its arguments.1352* The return hook: is called when the interpreter returns from a function. The hook is called just before Lua leaves the function. You have no access to the values to be returned by the function.1353* The line hook: is called when the interpreter is about to start the execution of a new line of code, or when it jumps back in the code (even to the same line). (This event only happens while Lua is executing a Lua function.)1354* The count hook: is called after the interpreter executes every count instructions. (This event only happens while Lua is executing a Lua function.)1355A hook is disabled by setting mask to zero.1356</remarks>1357</member>1358<member name="M:Tao.Lua.Lua.lua_gethook(System.IntPtr)">1359<summary>1360Returns the current hook function.1361</summary>1362<param name="L"></param>1363<returns></returns>1364</member>1365<member name="M:Tao.Lua.Lua.lua_gethookmask(System.IntPtr)">1366<summary>1367Returns the current hook mask.1368</summary>1369<param name="L"></param>1370<returns></returns>1371</member>1372<member name="M:Tao.Lua.Lua.lua_gethookcount(System.IntPtr)">1373<summary>1374Returns the current hook count.1375</summary>1376<param name="L"></param>1377<returns></returns>1378</member>1379<member name="M:Tao.Lua.Lua.luaopen_base(System.IntPtr)">1380<summary>13811382</summary>1383<param name="L"></param>1384<returns></returns>1385</member>1386<member name="M:Tao.Lua.Lua.luaopen_table(System.IntPtr)">1387<summary>13881389</summary>1390<param name="L"></param>1391<returns></returns>1392</member>1393<member name="M:Tao.Lua.Lua.luaopen_io(System.IntPtr)">1394<summary>13951396</summary>1397<param name="L"></param>1398<returns></returns>1399</member>1400<member name="M:Tao.Lua.Lua.luaopen_os(System.IntPtr)">1401<summary>14021403</summary>1404<param name="L"></param>1405<returns></returns>1406</member>1407<member name="M:Tao.Lua.Lua.luaopen_string(System.IntPtr)">1408<summary>14091410</summary>1411<param name="L"></param>1412<returns></returns>1413</member>1414<member name="M:Tao.Lua.Lua.luaopen_math(System.IntPtr)">1415<summary>14161417</summary>1418<param name="L"></param>1419<returns></returns>1420</member>1421<member name="M:Tao.Lua.Lua.luaopen_debug(System.IntPtr)">1422<summary>14231424</summary>1425<param name="L"></param>1426<returns></returns>1427</member>1428<member name="M:Tao.Lua.Lua.luaopen_package(System.IntPtr)">1429<summary>14301431</summary>1432<param name="L"></param>1433<returns></returns>1434</member>1435<member name="M:Tao.Lua.Lua.luaL_openlibs(System.IntPtr)">1436<summary>1437Opens all standard Lua libraries into the given state.1438</summary>1439<param name="L"></param>1440<returns></returns>1441</member>1442<member name="M:Tao.Lua.Lua.lua_asset(System.Object)">1443<summary>14441445</summary>1446<param name="x"></param>1447<returns></returns>1448</member>1449<member name="M:Tao.Lua.Lua.luaL_getn(System.IntPtr,System.Int32)">1450<summary>14511452</summary>1453<param name="L"></param>1454<param name="t"></param>1455<returns></returns>1456</member>1457<member name="M:Tao.Lua.Lua.luaL_setn(System.IntPtr,System.Int32,System.Int32)">1458<summary>14591460</summary>1461<param name="L"></param>1462<param name="t"></param>1463<param name="n"></param>1464</member>1465<member name="M:Tao.Lua.Lua.luaI_openlib(System.IntPtr,System.String,Tao.Lua.Lua.luaL_Reg@,System.Int32)">1466<summary>14671468</summary>1469<param name="L"></param>1470<param name="libname"></param>1471<param name="l"></param>1472<param name="nup"></param>1473</member>1474<member name="M:Tao.Lua.Lua.luaL_register(System.IntPtr,System.String,Tao.Lua.Lua.luaL_Reg@)">1475<summary>1476Opens a library.1477</summary>1478<param name="L"></param>1479<param name="libname"></param>1480<param name="l"></param>1481<remarks>When called with libname equal to NULL, it simply registers all functions in the list l (see luaL_Reg) into the table on the top of the stack.1482When called with a non-null libname, creates a new table t, sets it as the value of the global variable libname, sets it as the value of package.loaded[libname], and registers on it all functions in the list l. If there is a table in package.loaded[libname] or in variable libname, reuses this table instead of creating a new one.1483In any case the function leaves the table on the top of the stack. </remarks>1484</member>1485<member name="M:Tao.Lua.Lua.luaL_getmetafield(System.IntPtr,System.Int32,System.String)">1486<summary>1487Pushes onto the stack the field e from the metatable of the object at index obj. If the object does not have a metatable, or if the metatable does not have this field, returns 0 and pushes nothing.1488</summary>1489<param name="L"></param>1490<param name="obj"></param>1491<param name="e"></param>1492<returns></returns>1493</member>1494<member name="M:Tao.Lua.Lua.luaL_callmeta(System.IntPtr,System.Int32,System.String)">1495<summary>1496Calls a metamethod.1497</summary>1498<param name="L"></param>1499<param name="obj"></param>1500<param name="e"></param>1501<returns></returns>1502<remarks>1503If the object at index obj has a metatable and this metatable has a field e, this function calls this field and passes the object as its only argument. In this case this function returns 1 and pushes onto the stack the value returned by the call. If there is no metatable or no metamethod, this function returns 0 (without pushing any value on the stack).1504</remarks>1505</member>1506<member name="M:Tao.Lua.Lua.luaL_typerror(System.IntPtr,System.Int32,System.String)">1507<summary>1508Generates an error with a message.1509</summary>1510<param name="L"></param>1511<param name="narg"></param>1512<param name="tname"></param>1513<returns></returns>1514<remarks>Generates an error with a message like:1515[location]: bad argument [narg] to [function] ([tname] expected, got [realt])1516where [location] is produced by luaL_where, [function] is the name of the current function, and [realt] is the type name of the actual argument. </remarks>1517</member>1518<member name="M:Tao.Lua.Lua.luaL_argerror(System.IntPtr,System.Int32,System.String)">1519<summary>1520Raises an error with the following message, where func is retrieved from the call stack:1521<code>bad argument #[numarg] to [func] ([extramsg])</code>1522</summary>1523<param name="L"></param>1524<param name="numarg"></param>1525<param name="extramsg"></param>1526<returns>This function never returns, but it is an idiom to use it in C functions as return luaL_argerror(args).</returns>1527</member>1528<member name="M:Tao.Lua.Lua.luaL_checklstring(System.IntPtr,System.Int32,System.UInt32@)">1529<summary>1530Checks whether the function argument narg is a string and returns this string; if l is not NULL fills *l with the string's length.1531</summary>1532<param name="L"></param>1533<param name="numArg"></param>1534<param name="l"></param>1535<returns></returns>1536</member>1537<member name="M:Tao.Lua.Lua.luaL_optlstring(System.IntPtr,System.Int32,System.String,System.UInt32@)">1538<summary>1539If the function argument narg is a string, returns this string. If this argument is absent or is nil, returns d. Otherwise, raises an error. If l is not NULL, fills the position *l with the results's length.1540</summary>1541<param name="L"></param>1542<param name="numArg"></param>1543<param name="def"></param>1544<param name="l"></param>1545<returns></returns>1546</member>1547<member name="M:Tao.Lua.Lua.luaL_checknumber(System.IntPtr,System.Int32)">1548<summary>1549Checks whether the function argument narg is a number and returns this number.1550</summary>1551<param name="L"></param>1552<param name="numArg"></param>1553<returns></returns>1554</member>1555<member name="M:Tao.Lua.Lua.luaL_optnumber(System.IntPtr,System.Int32,System.Double)">1556<summary>1557If the function argument narg is a number, returns this number. If this argument is absent or is nil, returns d. Otherwise, raises an error.1558</summary>1559<param name="L"></param>1560<param name="nArg"></param>1561<param name="def"></param>1562<returns></returns>1563</member>1564<member name="M:Tao.Lua.Lua.luaL_checkinteger(System.IntPtr,System.Int32)">1565<summary>1566Checks whether the function argument narg is a number and returns this number cast to a lua_Integer.1567</summary>1568<param name="L"></param>1569<param name="numArg"></param>1570<returns></returns>1571</member>1572<member name="M:Tao.Lua.Lua.luaL_optinteger(System.IntPtr,System.Int32,System.Int32)">1573<summary>1574If the function argument narg is a number, returns this number cast to a lua_Integer. If this argument is absent or is nil, returns d. Otherwise, raises an error.1575</summary>1576<param name="L"></param>1577<param name="nArg"></param>1578<param name="def"></param>1579<returns></returns>1580</member>1581<member name="M:Tao.Lua.Lua.luaL_checkstack(System.IntPtr,System.Int32,System.String)">1582<summary>1583Grows the stack size to top + sz elements, raising an error if the stack cannot grow to that size. msg is an additional text to go into the error message.1584</summary>1585<param name="L"></param>1586<param name="sz"></param>1587<param name="msg"></param>1588</member>1589<member name="M:Tao.Lua.Lua.luaL_checktype(System.IntPtr,System.Int32,System.Int32)">1590<summary>1591Checks whether the function argument narg has type t.1592</summary>1593<param name="L"></param>1594<param name="narg"></param>1595<param name="t"></param>1596</member>1597<member name="M:Tao.Lua.Lua.luaL_checkany(System.IntPtr,System.Int32)">1598<summary>1599Checks whether the function has an argument of any type (including nil) at position narg.1600</summary>1601<param name="L"></param>1602<param name="narg"></param>1603</member>1604<member name="M:Tao.Lua.Lua.luaL_newmetatable(System.IntPtr,System.String)">1605<summary>1606If the registry already has the key tname, returns 0. Otherwise, creates a new table to be used as a metatable for userdata, adds it to the registry with key tname, and returns 1.1607</summary>1608<param name="L"></param>1609<param name="tname"></param>1610<returns></returns>1611<remarks>In both cases pushes onto the stack the final value associated with tname in the registry.</remarks>1612</member>1613<member name="M:Tao.Lua.Lua.luaL_checkudata(System.IntPtr,System.Int32,System.String)">1614<summary>1615Checks whether the function argument narg is a userdata of the type tname (see luaL_newmetatable).1616</summary>1617<param name="L"></param>1618<param name="ud"></param>1619<param name="tname"></param>1620<returns></returns>1621</member>1622<member name="M:Tao.Lua.Lua.luaL_where(System.IntPtr,System.Int32)">1623<summary>1624Pushes onto the stack a string identifying the current position of the control at level lvl in the call stack. Typically this string has the format {chunkname}:{currentline}:. Level 0 is the running function, level 1 is the function that called the running function, etc.1625</summary>1626<param name="L"></param>1627<param name="lvl"></param>1628<remarks>This function is used to build a prefix for error messages.</remarks>1629</member>1630<member name="M:Tao.Lua.Lua.luaL_checkoption(System.IntPtr,System.Int32,System.String,System.String[])">1631<summary>1632Checks whether the function argument narg is a string and searches for this string in the array lst (which must be NULL-terminated). Returns the index in the array where the string was found. Raises an error if the argument is not a string or if the string cannot be found.1633</summary>1634<param name="L"></param>1635<param name="narg"></param>1636<param name="def"></param>1637<param name="lst"></param>1638<returns></returns>1639<remarks>1640If def is not NULL, the function uses def as a default value when there is no argument narg or if this argument is nil.1641This is a useful function for mapping strings to C enums. (The usual convention in Lua libraries is to use strings instead of numbers to select options.)1642</remarks>1643</member>1644<member name="M:Tao.Lua.Lua.luaL_ref(System.IntPtr,System.Int32)">1645<summary>1646Creates and returns a reference, in the table at index t, for the object at the top of the stack (and pops the object).1647</summary>1648<param name="L"></param>1649<param name="t"></param>1650<returns></returns>1651<remarks>A reference is a unique integer key. As long as you do not manually add integer keys into table t, luaL_ref ensures the uniqueness of the key it returns. You can retrieve an object referred by reference r by calling lua_rawgeti(L, t, r). Function luaL_unref frees a reference and its associated object.1652If the object at the top of the stack is nil, luaL_ref returns the constant LUA_REFNIL. The constant LUA_NOREF is guaranteed to be different from any reference returned by luaL_ref.1653</remarks>1654</member>1655<member name="M:Tao.Lua.Lua.luaL_unref(System.IntPtr,System.Int32,System.Int32)">1656<summary>1657Releases reference ref from the table at index t (see luaL_ref). The entry is removed from the table, so that the referred object can be collected. The reference ref is also freed to be used again.1658</summary>1659<param name="L"></param>1660<param name="t"></param>1661<param name="rf">If rf is LUA_NOREF or LUA_REFNIL, luaL_unref does nothing.</param>1662</member>1663<member name="M:Tao.Lua.Lua.luaL_loadfile(System.IntPtr,System.String)">1664<summary>1665Loads a file as a Lua chunk. This function uses lua_load to load the chunk in the file named filename. If filename is NULL, then it loads from the standard input. The first line in the file is ignored if it starts with a #.1666</summary>1667<param name="L"></param>1668<param name="filename"></param>1669<returns></returns>1670<remarks>This function returns the same results as lua_load, but it has an extra error code LUA_ERRFILE if it cannot open/read the file. As lua_load, this function only loads the chunk; it does not run it.</remarks>1671</member>1672<member name="M:Tao.Lua.Lua.luaL_loadbuffer(System.IntPtr,System.String,System.UInt32,System.String)">1673<summary>1674Loads a buffer as a Lua chunk. This function uses lua_load to load the chunk in the buffer pointed to by buff with size sz.1675</summary>1676<param name="L"></param>1677<param name="buff"></param>1678<param name="sz"></param>1679<param name="name"></param>1680<returns></returns>1681<remarks>This function returns the same results as lua_load. name is the chunk name, used for debug information and error messages.</remarks>1682</member>1683<member name="M:Tao.Lua.Lua.luaL_loadstring(System.IntPtr,System.String)">1684<summary>1685Loads a string as a Lua chunk. This function uses lua_load to load the chunk in the zero-terminated string s.1686</summary>1687<param name="L"></param>1688<param name="s"></param>1689<returns></returns>1690<remarks>This function returns the same results as lua_load. Also as lua_load, this function only loads the chunk; it does not run it.</remarks>1691</member>1692<member name="M:Tao.Lua.Lua.luaL_newstate">1693<summary>1694Creates a new Lua state, calling lua_newstate with an allocation function based on the standard C realloc function and setting a panic function (see lua_atpanic) that prints an error message to the standard error output in case of fatal errors.1695</summary>1696<returns>Returns the new state, or NULL if there is a memory allocation error.</returns>1697</member>1698<member name="M:Tao.Lua.Lua.luaL_gsub(System.IntPtr,System.String,System.String,System.String)">1699<summary>1700Creates a copy of string s by replacing any occurrence of the string p with the string r. Pushes the resulting string on the stack and returns it.1701</summary>1702<param name="L"></param>1703<param name="s"></param>1704<param name="p"></param>1705<param name="r"></param>1706<returns></returns>1707</member>1708<member name="M:Tao.Lua.Lua.luaL_findtable(System.IntPtr,System.Int32,System.String,System.Int32)">1709<summary>17101711</summary>1712<param name="L"></param>1713<param name="idx"></param>1714<param name="fname"></param>1715<param name="szhint"></param>1716<returns></returns>1717</member>1718<member name="M:Tao.Lua.Lua.luaL_argcheck(System.IntPtr,System.Int32,System.Int32,System.String)">1719<summary>1720Checks whether cond is true. If not, raises an error with the following message, where func is retrieved from the call stack:1721<code>bad argument #[numarg] to [func] ([extramsg])</code>1722</summary>1723<param name="L"></param>1724<param name="cond"></param>1725<param name="numarg"></param>1726<param name="extramsg"></param>1727<returns></returns>1728</member>1729<member name="M:Tao.Lua.Lua.luaL_checkstring(System.IntPtr,System.Int32)">1730<summary>1731Checks whether the function argument narg is a string and returns this string.1732</summary>1733<param name="L"></param>1734<param name="n"></param>1735<returns></returns>1736</member>1737<member name="M:Tao.Lua.Lua.luaL_optstring(System.IntPtr,System.Int32,System.String)">1738<summary>1739If the function argument narg is a string, returns this string. If this argument is absent or is nil, returns d. Otherwise, raises an error.1740</summary>1741<param name="L"></param>1742<param name="n"></param>1743<param name="d"></param>1744<returns></returns>1745</member>1746<member name="M:Tao.Lua.Lua.luaL_checkint(System.IntPtr,System.Int32)">1747<summary>1748Checks whether the function argument narg is a number and returns this number cast to an int.1749</summary>1750<param name="L"></param>1751<param name="n"></param>1752<returns></returns>1753</member>1754<member name="M:Tao.Lua.Lua.luaL_optint(System.IntPtr,System.Int32,System.Int32)">1755<summary>1756If the function argument narg is a number, returns this number cast to an int.1757</summary>1758<param name="L"></param>1759<param name="n"></param>1760<param name="d"></param>1761<returns>If this argument is absent or is nil, returns d. Otherwise, raises an error.</returns>1762</member>1763<member name="M:Tao.Lua.Lua.luaL_checklong(System.IntPtr,System.Int32)">1764<summary>1765Checks whether the function argument narg is a number and returns this number cast to a long.1766</summary>1767<param name="L"></param>1768<param name="n"></param>1769<returns></returns>1770</member>1771<member name="M:Tao.Lua.Lua.luaL_optlong(System.IntPtr,System.Int32,System.Int32)">1772<summary>1773If the function argument narg is a number, returns this number cast to a long. If this argument is absent or is nil, returns d. Otherwise, raises an error.1774</summary>1775<param name="L"></param>1776<param name="n"></param>1777<param name="d"></param>1778<returns></returns>1779</member>1780<member name="M:Tao.Lua.Lua.luaL_typename(System.IntPtr,System.Int32)">1781<summary>1782Returns the name of the type of the value at index idx.1783</summary>1784<param name="L"></param>1785<param name="i"></param>1786<returns></returns>1787</member>1788<member name="M:Tao.Lua.Lua.luaL_dofile(System.IntPtr,System.String)">1789<summary>1790Loads and runs the given file.1791</summary>1792<param name="L"></param>1793<param name="fn"></param>1794<returns>It returns 0 if there are no errors or 1 in case of errors.</returns>1795</member>1796<member name="M:Tao.Lua.Lua.luaL_dostring(System.IntPtr,System.String)">1797<summary>1798Loads and runs the given string.1799</summary>1800<param name="L"></param>1801<param name="s"></param>1802<returns>It returns 0 if there are no errors or 1 in case of errors.</returns>1803</member>1804<member name="M:Tao.Lua.Lua.luaL_getmetatable(System.IntPtr,System.String)">1805<summary>1806Pushes onto the stack the metatable associated with name tname in the registry (see luaL_newmetatable).1807</summary>1808<param name="L"></param>1809<param name="n"></param>1810</member>1811<member name="M:Tao.Lua.Lua.luaL_opt(System.IntPtr,System.Int32,System.Int32,System.Int32)">1812<summary>18131814</summary>1815<param name="L"></param>1816<param name="f"></param>1817<param name="n"></param>1818<param name="d"></param>1819</member>1820<member name="M:Tao.Lua.Lua.luaL_addchar(Tao.Lua.Lua.luaL_Buffer@,System.Char)">1821<summary>1822Adds the character c to the buffer B (see luaL_Buffer).1823</summary>1824<param name="B"></param>1825<param name="c"></param>1826</member>1827<member name="M:Tao.Lua.Lua.luaL_putchar(Tao.Lua.Lua.luaL_Buffer@,System.Char)">1828<summary>18291830</summary>1831<param name="B"></param>1832<param name="c"></param>1833</member>1834<member name="M:Tao.Lua.Lua.luaL_addsize(Tao.Lua.Lua.luaL_Buffer,System.Int32)">1835<summary>1836Adds a string of length n previously copied to the buffer area (see luaL_prepbuffer) to the buffer B (see luaL_Buffer).1837</summary>1838<param name="B"></param>1839<param name="n"></param>1840</member>1841<member name="M:Tao.Lua.Lua.luaL_buffinit(System.IntPtr,Tao.Lua.Lua.luaL_Buffer@)">1842<summary>1843Initializes a buffer B. This function does not allocate any space; the buffer must be declared as a variable (see luaL_Buffer).1844</summary>1845<param name="L"></param>1846<param name="B"></param>1847</member>1848<member name="M:Tao.Lua.Lua.luaL_prepbuffer(Tao.Lua.Lua.luaL_Buffer@)">1849<summary>1850Returns an address to a space of size LUAL_BUFFERSIZE where you can copy a string to be added to buffer B (see luaL_Buffer). After copying the string into this space you must call luaL_addsize with the size of the string to actually add it to the buffer.1851</summary>1852<param name="B"></param>1853<returns></returns>1854</member>1855<member name="M:Tao.Lua.Lua.luaL_addlstring(Tao.Lua.Lua.luaL_Buffer@,System.String,System.UInt32)">1856<summary>1857Adds the string pointed to by s with length l to the buffer B (see luaL_Buffer). The string may contain embedded zeros.1858</summary>1859<param name="B"></param>1860<param name="s"></param>1861<param name="l"></param>1862</member>1863<member name="M:Tao.Lua.Lua.luaL_addstring(Tao.Lua.Lua.luaL_Buffer@,System.String)">1864<summary>1865Adds the zero-terminated string pointed to by s to the buffer B (see luaL_Buffer). The string may not contain embedded zeros.1866</summary>1867<param name="B"></param>1868<param name="s"></param>1869</member>1870<member name="M:Tao.Lua.Lua.luaL_addvalue(Tao.Lua.Lua.luaL_Buffer@)">1871<summary>1872Adds the value at the top of the stack to the buffer B (see luaL_Buffer). Pops the value.1873</summary>1874<param name="B"></param>1875<remarks>This is the only function on string buffers that can (and must) be called with an extra element on the stack, which is the value to be added to the buffer.</remarks>1876</member>1877<member name="M:Tao.Lua.Lua.luaL_pushresult(Tao.Lua.Lua.luaL_Buffer@)">1878<summary>1879Finishes the use of buffer B leaving the final string on the top of the stack.1880</summary>1881<param name="B"></param>1882</member>1883<member name="M:Tao.Lua.Lua.lua_ref(System.IntPtr,System.Boolean)">1884<summary>18851886</summary>1887<param name="L"></param>1888<param name="lockit"></param>1889<returns></returns>1890</member>1891<member name="M:Tao.Lua.Lua.lua_unref(System.IntPtr,System.Int32)">1892<summary>18931894</summary>1895<param name="L"></param>1896<param name="reference"></param>1897</member>1898<member name="M:Tao.Lua.Lua.lua_getref(System.IntPtr,System.Int32)">1899<summary>19001901</summary>1902<param name="L"></param>1903<param name="reference"></param>1904</member>1905<member name="T:Tao.Lua.Lua.lua_CFunction">1906<summary>1907Type for C functions.1908</summary>1909<param name="L"></param>1910<remarks>1911In order to communicate properly with Lua, a C function must use the following1912protocol, which defines the way parameters and results are passed: a C function1913receives its arguments from Lua in its stack in direct order (the first argument1914is pushed first). So, when the function starts, lua_gettop(L) returns the number1915of arguments received by the function. The first argument (if any) is at index 11916and its last argument is at index lua_gettop(L). To return values to Lua, a C1917function just pushes them onto the stack, in direct order (the first result is1918pushed first), and returns the number of results. Any other value in the stack1919below the results will be properly discarded by Lua. Like a Lua function, a C1920function called by Lua can also return many results.1921</remarks>1922<returns></returns>1923</member>1924<member name="T:Tao.Lua.Lua.lua_Reader">1925<summary>1926The reader function used by lua_load.1927</summary>1928<param name="L"></param>1929<param name="ud"></param>1930<param name="sz"></param>1931<returns>1932To signal the end of the chunk, the reader must return NULL. The reader1933function may return pieces of any size greater than zero.1934</returns>1935<remarks>1936Every time it needs another piece of the chunk, lua_load calls the reader,1937passing along its data parameter. The reader must return a pointer to a1938block of memory with a new piece of the chunk and set size to the block size.1939The block must exist until the reader function is called again.1940</remarks>1941</member>1942<member name="T:Tao.Lua.Lua.lua_Writer">1943<summary>1944The writer function used by lua_dump. Every time it produces another piece of chunk, lua_dump calls the writer, passing along the buffer to be written (p), its size (sz), and the data parameter supplied to lua_dump.1945</summary>1946<param name="L"></param>1947<param name="p"></param>1948<param name="sz"></param>1949<param name="ud"></param>1950<returns>1951The writer returns an error code: 0 means no errors; any other value means an error and stops lua_dump from calling the writer again.1952</returns>1953</member>1954<member name="T:Tao.Lua.Lua.lua_Alloc">1955<summary>19561957</summary>1958<param name="ud"></param>1959<param name="ptr"></param>1960<param name="osize"></param>1961<param name="nsize"></param>1962<returns></returns>1963</member>1964<member name="T:Tao.Lua.Lua.lua_Hook">1965<summary>1966Type for debugging hook functions.1967</summary>1968<param name="L"></param>1969<param name="ar"></param>1970<remarks>1971Whenever a hook is called, its ar argument has its field event set to the specific event that triggered the hook. Lua identifies these events with the following constants: LUA_HOOKCALL, LUA_HOOKRET, LUA_HOOKTAILRET, LUA_HOOKLINE, and LUA_HOOKCOUNT. Moreover, for line events, the field currentline is also set. To get the value of any other field in ar, the hook must call lua_getinfo. For return events, event may be LUA_HOOKRET, the normal value, or LUA_HOOKTAILRET. In the latter case, Lua is simulating a return from a function that did a tail call; in this case, it is useless to call lua_getinfo.1972While Lua is running a hook, it disables other calls to hooks. Therefore, if a hook calls back Lua to execute a function or a chunk, this execution occurs without any calls to hooks.1973</remarks>1974</member>1975<member name="T:Tao.Lua.Lua.lua_Debug">1976<summary>1977A structure used to carry different pieces of information about an active function. lua_getstack fills only the private part of this structure, for later use. To fill the other fields of lua_Debug with useful information, call lua_getinfo.1978</summary>1979</member>1980<member name="F:Tao.Lua.Lua.lua_Debug.Event">1981<summary>19821983</summary>1984</member>1985<member name="F:Tao.Lua.Lua.lua_Debug.name">1986<summary>1987a reasonable name for the given function. Because functions in Lua are first-class values, they do not have a fixed name: some functions may be the value of multiple global variables, while others may be stored only in a table field. The lua_getinfo function checks how the function was called to find a suitable name. If it cannot find a name, then name is set to NULL.1988</summary>1989</member>1990<member name="F:Tao.Lua.Lua.lua_Debug.namewhat">1991<summary>1992explains the name field. The value of namewhat can be "global", "local", "method", "field", "upvalue", or "" (the empty string), according to how the function was called. (Lua uses the empty string when no other option seems to apply.)1993</summary>1994</member>1995<member name="F:Tao.Lua.Lua.lua_Debug.what">1996<summary>1997the string "Lua" if the function is a Lua function, "C" if it is a C function, "main" if it is the main part of a chunk, and "tail" if it was a function that did a tail call. In the latter case, Lua has no other information about the function.1998</summary>1999</member>2000<member name="F:Tao.Lua.Lua.lua_Debug.source">2001<summary>2002If the function was defined in a string, then source is that string. If the function was defined in a file, then source starts with a '@' followed by the file name.2003</summary>2004</member>2005<member name="F:Tao.Lua.Lua.lua_Debug.currentline">2006<summary>2007the current line where the given function is executing. When no line information is available, currentline is set to -1.2008</summary>2009</member>2010<member name="F:Tao.Lua.Lua.lua_Debug.nups">2011<summary>2012the number of upvalues of the function.2013</summary>2014</member>2015<member name="F:Tao.Lua.Lua.lua_Debug.linedefined">2016<summary>2017the line number where the definition of the function starts.2018</summary>2019</member>2020<member name="F:Tao.Lua.Lua.lua_Debug.short_src">2021<summary>2022a "printable" version of source, to be used in error messages.2023</summary>2024</member>2025<member name="F:Tao.Lua.Lua.lua_Debug.i_ci">2026<summary>20272028</summary>2029</member>2030<member name="T:Tao.Lua.Lua.luaL_Reg">2031<summary>2032Type for arrays of functions to be registered by luaL_register. name is the function name and func is a pointer to the function. Any array of luaL_Reg must end with an sentinel entry in which both name and func are NULL.2033</summary>2034</member>2035<member name="F:Tao.Lua.Lua.luaL_Reg.name">2036<summary>20372038</summary>2039</member>2040<member name="F:Tao.Lua.Lua.luaL_Reg.func">2041<summary>20422043</summary>2044</member>2045<member name="T:Tao.Lua.Lua.luaL_Buffer">2046<summary>2047Type for a string buffer.2048</summary>2049<remarks>2050A string buffer allows C code to build Lua strings piecemeal. Its pattern of use is as follows:2051* First you declare a variable b of type luaL_Buffer.2052* Then you initialize it with a call luaL_buffinit(L, &b).2053* Then you add string pieces to the buffer calling any of the luaL_add* functions.2054* You finish by calling luaL_pushresult(&b). This call leaves the final string on the top of the stack.2055During its normal operation, a string buffer uses a variable number of stack slots. So, while using a buffer, you cannot assume that you know where the top of the stack is. You can use the stack between successive calls to buffer operations as long as that use is balanced; that is, when you call a buffer operation, the stack is at the same level it was immediately after the previous buffer operation. (The only exception to this rule is luaL_addvalue.) After calling luaL_pushresult the stack is back to its level when the buffer was initialized, plus the final string on its top.2056</remarks>2057</member>2058<member name="F:Tao.Lua.Lua.luaL_Buffer.p">2059<summary>20602061</summary>2062</member>2063<member name="F:Tao.Lua.Lua.luaL_Buffer.lvl">2064<summary>20652066</summary>2067</member>2068<member name="F:Tao.Lua.Lua.luaL_Buffer.L">2069<summary>20702071</summary>2072</member>2073<member name="F:Tao.Lua.Lua.luaL_Buffer.buffer">2074<summary>20752076</summary>2077</member>2078</members>2079</doc>208020812082