Difference between revisions of "String.dump"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 
=== Description ===
 
=== 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.
+
<translate>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.</translate>
 
<source lang="lua">
 
<source lang="lua">
 
(string) = string.dump(function)
 
(string) = string.dump(function)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''function''': (function) function to convert to string <br/>
+
'''function''': (function) <translate>function to convert to string</translate> <br/>
 
=== Return values ===
 
=== Return values ===
'''Returns''' (string) string representation of function<br/>
+
'''Returns''' (string) <translate>string representation of function</translate><br/>

Revision as of 13:34, 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)

Parameters

function: (function) function to convert to string

Return values

Returns (string) string representation of function