MCPcopy Create free account
hub / github.com/MoeMod/CSMoE / HashBytes

Function HashBytes

SourceSDK/tier1/snappy.cpp:60–63  ·  view source on GitHub ↗

Any hash function will produce a valid compressed bitstream, but a good hash function reduces the number of collisions and thus yields better compression for compressible input, and more speed for incompressible input. Of course, it doesn't hurt if the hash function is reasonably fast either, as it gets called a lot.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

HashFunction · 0.85
CompressFragmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected