Tao.Lua SDK Documentation

Lua.lua_Writer Delegate

The writer function used by lua_dump. Every time it produces another piece of chunk, lua_dump calls the writer, passing along the buffer to be written (p), its size (sz), and the data parameter supplied to lua_dump.

[Visual Basic]
Public Delegate Function Lua.lua_Writer( _
   ByVal L As IntPtr, _
   ByVal p As IntPtr, _
   ByVal sz As UInt32, _
   ByVal ud As IntPtr _
) As Integer
[C#]
public delegate int Lua.lua_Writer(
   IntPtr L,
   IntPtr p,
   uint sz,
   IntPtr ud
);

Parameters

L
p
sz
ud

Return Value

The writer returns an error code: 0 means no errors; any other value means an error and stops lua_dump from calling the writer again.

Requirements

Namespace: Tao.Lua

Assembly: Tao.Lua (in Tao.Lua.dll)

See Also

Tao.Lua Namespace