Tao.Lua SDK Documentation

Lua.lua_objlen Method 

Returns the "length" of the value at the given acceptable index: for strings, this is the string length; for tables, this is the result of the length operator ('#'); for userdata, this is the size of the block of memory allocated for the userdata; for other values, it is 0.

[Visual Basic]
Public Shared Function lua_objlen( _
   ByVal L As IntPtr, _
   ByVal idx As Integer _
) As UInt32
[C#]
public static uint lua_objlen(
   IntPtr L,
   int idx
);

Parameters

L
idx

Return Value

See Also

Lua Class | Tao.Lua Namespace