| 1601 | // just the bitmap and size. Meant to be used with table I/O. |
| 1602 | // -------------------------------------------------------------- |
| 1603 | template <typename OUTPUT> bool write_metadata(OUTPUT *fp) const |
| 1604 | { |
| 1605 | // warning: we write 4 or 8 bytes for the bitmap, instead of 6 in the |
| 1606 | // original google sparsehash |
| 1607 | // ------------------------------------------------------------------ |
| 1608 | if (!sparsehash_internal::write_data(fp, &_bitmap, sizeof(_bitmap))) |
| 1609 | return false; |
| 1610 | |
| 1611 | return true; |
| 1612 | } |
| 1613 | |
| 1614 | // Reading destroys the old group contents! Returns true if all was ok. |
| 1615 | template <typename INPUT> bool read_metadata(allocator_type &alloc, INPUT *fp) |
no test coverage detected