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

Method write

Bloom/BloomFilter.h:142–155  ·  view source on GitHub ↗

Write a bloom filter to a stream. */

Source from the content-addressed store, hash-verified

140
141 /** Write a bloom filter to a stream. */
142 void write(std::ostream& out) const
143 {
144 Bloom::FileHeader header;
145 header.fullBloomSize = m_size;
146 header.startBitPos = 0;
147 header.endBitPos = m_size - 1;
148 header.hashSeed = m_hashSeed;
149
150 Bloom::writeHeader(out, header);
151 assert(out);
152
153 out.write(m_array, (m_size + 7)/8);
154 assert(out);
155 }
156
157 /** Resize the bloom filter (wipes the current data) */
158 void resize(size_t size)

Callers 1

BloomFilterClass · 0.45

Calls 1

writeHeaderFunction · 0.85

Tested by

no test coverage detected