This function is used to extract offsets from value that redis bitset stores. You might need to adjust it if you have performance issue when use it.