MCPcopy Create free account
hub / github.com/BirolLab/abyss / Rank

Method Rank

FMIndex/bit_array.cc:76–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76uint64_t BitArray::Rank(uint64_t bit, uint64_t pos) const {
77 if (pos > length_) return NOTFOUND;
78 if (bit) return RankOne(pos);
79 else return pos - RankOne(pos);
80}
81
82uint64_t BitArray::Select(uint64_t bit, uint64_t rank) const {
83 if (bit){

Callers 1

rankMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected