Developer

API Reference

ILua_ObjLen()

Brew Release
Brew MP 1.0.2
Description
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.
Parameters
  • pif
    []:
    a pointer to the ILua object
  • nIndex
    []:
    the stack index of the object
  • pnLen
    []:
    a pointer to an integer set on return to the length of the given object
Interface
Prototype
   AEEResult ILua_ObjLen(ILua *pif, int nIndex, int *pnLen)
Return
AEE_SUCCESS if the function succeeded, otherwise an error code.
  • Follow