MCPcopy Create free account
hub / github.com/BirolLab/RNA-Bloom / getIndex

Method getIndex

src/rnabloom/bloom/BloomFilter.java:108–111  ·  view source on GitHub ↗
(long hashVal, long size)

Source from the content-addressed store, hash-verified

106 }
107
108 protected static long getIndex(long hashVal, long size) {
109 // shift right to remove sign bit and modulus the size of buffer
110 return (hashVal >>> 1) % size;
111 }
112
113 public void save(File desc, File bits) throws IOException {
114 FileWriter writer = new FileWriter(desc, false);

Callers 4

addMethod · 0.95
lookupThenAddMethod · 0.95
addCASMethod · 0.95
lookupMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected