Difference between revisions of "String.dump"
From GiderosMobile
 (Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Returns a string containing a binary representation of the given function, so that a later loadstring...")  | 
				|||
| Line 4: | Line 4: | ||
Returns a string containing a binary representation of the given function, so that a later loadstring on this string returns a copy of the function. function must be a Lua function without upvalues.  | Returns a string containing a binary representation of the given function, so that a later loadstring on this string returns a copy of the function. function must be a Lua function without upvalues.  | ||
<source lang="lua">  | <source lang="lua">  | ||
| − | (string)  | + | (string) = string.dump(function)  | 
</source>  | </source>  | ||
| − | '''function  | + | '''function''': (function) function to convert to string ''''''<br/>  | 
'''Returns''' (string) string representation of function<br/>  | '''Returns''' (string) string representation of function<br/>  | ||
Revision as of 10:21, 23 August 2018
Available since: Gideros 2011.6
Description
Returns a string containing a binary representation of the given function, so that a later loadstring on this string returns a copy of the function. function must be a Lua function without upvalues.
(string) = string.dump(function)
'function: (function) function to convert to string '
Returns (string) string representation of function