Difference between revisions of "String.dump"

From OpenEUO
Jump to: navigation, search
(Created page with " string.dump (function) 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. func...")
 
Line 2: Line 2:
  
 
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. (A local variable used by an inner function is called an upvalue, or external local variable, inside the inner function.)
 
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. (A local variable used by an inner function is called an upvalue, or external local variable, inside the inner function.)
 +
 +
[[getmetatable]]
 +
 +
[[String.byte]]
 +
 +
[[String.len]]
 +
 +
[http://www.lua.org/manual/5.1/manual.html#2.5.5 Lua Manual - Length Operator (#)]

Revision as of 14:39, 9 October 2010

string.dump (function)

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. (A local variable used by an inner function is called an upvalue, or external local variable, inside the inner function.)

getmetatable

String.byte

String.len

Lua Manual - Length Operator (#)