MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / write_metadata

Method write_metadata

libCacheSim/dataStructure/sparsepp/spp.h:1603–1612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers 4

write_metadataMethod · 0.45
write_metadataMethod · 0.45
write_metadataMethod · 0.45
write_metadataMethod · 0.45

Calls 1

write_dataFunction · 0.85

Tested by

no test coverage detected