Tao.Lua SDK Documentation

Lua.lua_dump Method 

Dumps a function as a binary chunk. Receives a Lua function on the top of the stack and produces a binary chunk that, if loaded again, results in a function equivalent to the one dumped. As it produces parts of the chunk, lua_dump calls function writer (see lua_Writer) with the given data to write them.

[Visual Basic]
Public Shared Function lua_dump( _
   ByVal L As IntPtr, _
   ByVal writer As lua_Writer, _
   ByVal data As IntPtr _
) As Integer
[C#]
public static int lua_dump(
   IntPtr L,
   lua_Writer writer,
   IntPtr data
);

Parameters

L
writer
data

Return Value

The value returned is the error code returned by the last call to the writer; 0 means no errors.

Remarks

This function does not pop the Lua function from the stack.

See Also

Lua Class | Tao.Lua Namespace