MCPcopy Create free account
hub / github.com/LFYSec/MScan / get

Method get

src/main/java/pascal/taie/util/collection/SparseBitSet.java:232–244  ·  view source on GitHub ↗
(int bitIndex)

Source from the content-addressed store, hash-verified

230 }
231
232 @Override
233 public boolean get(int bitIndex) {
234 if ((bitIndex + 1) < 1) {
235 throw new IndexOutOfBoundsException("bitIndex=" + bitIndex);
236 }
237 final int w = wordIndex(bitIndex);
238 long[][] a2;
239 long[] a3;
240 return bitIndex < bitsLength
241 && (a2 = table[level1Index(w)]) != null
242 && (a3 = a2[level2Index(w)]) != null
243 && ((a3[level3Index(w)] & (1L << bitIndex)) != 0);
244 }
245
246 @Override
247 public void flip(int bitIndex) {

Callers

nothing calls this directly

Calls 4

wordIndexMethod · 0.95
level1IndexMethod · 0.95
level2IndexMethod · 0.95
level3IndexMethod · 0.95

Tested by

no test coverage detected