pub fn totalItemsLen(unwrapped: *const UnwrappedSwitchBlock) u32 unwrapped: *const UnwrappedSwitchBlock5125
5126
5127
5128
5129
5130
5131 pub fn totalItemsLen(unwrapped: *const UnwrappedSwitchBlock) u32 {
var total_items_len: u32 = @intCast(unwrapped.item_infos.len);
if (unwrapped.multi_case_ranges_lens) |ranges_lens| {
for (ranges_lens) |len| total_items_len -= len;
}
return total_items_len;
}