Write a bloom filter window to a stream. */
| 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 | |
| 176 | private: |
| 177 |
no test coverage detected