lua_objlen

Function lua_objlen 

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