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

Method write

Bloom/BloomFilterWindow.h:160–174  ·  view source on GitHub ↗

Write a bloom filter window to a stream. */

Source from the content-addressed store, hash-verified

158
159 /** Write a bloom filter window to a stream. */
160 void write(std::ostream& out) const
161 {
162 Bloom::FileHeader header;
163 header.fullBloomSize = m_fullBloomSize;
164 header.startBitPos = m_startBitPos;
165 header.endBitPos = m_endBitPos;
166 header.hashSeed = m_hashSeed;
167
168 Bloom::writeHeader(out, header);
169 assert(out);
170
171 size_t windowSize = m_endBitPos - m_startBitPos + 1;
172 out.write(m_array, (windowSize + 7)/8);
173 assert(out);
174 }
175
176private:
177

Callers 1

BloomFilterWindowClass · 0.45

Calls 1

writeHeaderFunction · 0.85

Tested by

no test coverage detected