pub fn lua_objlen(l: LuaState, idx: c_int) -> SizeTExpand 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.