MCPcopy Create free account
hub / github.com/google/snappy / GetHashTable

Method GetHashTable

snappy.cc:792–798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790}
791
792uint16_t* WorkingMemory::GetHashTable(size_t fragment_size,
793 int* table_size) const {
794 const size_t htsize = CalculateTableSize(fragment_size);
795 memset(table_, 0, htsize * sizeof(*table_));
796 *table_size = htsize;
797 return table_;
798}
799} // end namespace internal
800
801// Flat array compression that does not emit the "uncompressed length"

Callers 2

InternalCompressFunction · 0.80

Calls 1

CalculateTableSizeFunction · 0.85

Tested by 1