Difference between revisions of "String.dump"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | + | '''Available since:''' Gideros 2011.6<br/> | |
− | ''' | + | '''Class:''' [[string]]<br/> |
− | ''' | + | |
− | === | + | === 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. | |
<source lang="lua"> | <source lang="lua"> | ||
(string) = string.dump(function) | (string) = string.dump(function) | ||
</source> | </source> | ||
− | === | + | |
− | '''function''': (function) | + | === Parameters === |
− | === | + | '''function''': (function) function to convert to string<br/> |
− | ''' | + | |
+ | === Return values === | ||
+ | '''Returns''' (string) string representation of function<br/> | ||
{{String}} | {{String}} |
Revision as of 06:21, 20 January 2023
Available since: Gideros 2011.6
Class: string
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)
Parameters
function: (function) function to convert to string
Return values
Returns (string) string representation of function