Function objlen

Source
pub unsafe extern "C" fn objlen(state: lua_State, index: i32) -> usize
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.