| 200 | } |
| 201 | |
| 202 | void BitArray::Save(std::ostream& os) const{ |
| 203 | os.write((const char*)(&length_), sizeof(length_)); |
| 204 | os.write((const char*)(&bit_blocks_[0]), sizeof(bit_blocks_[0]) * bit_blocks_.size()); |
| 205 | } |
| 206 | |
| 207 | void BitArray::Load(std::istream& is){ |
| 208 | Clear(); |