MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / MakeEntry

Function MakeEntry

Libraries/snappy/snappy.cc:558–566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556 "If true, we print the decompression table at startup.");
557
558static uint16 MakeEntry(unsigned int extra,
559 unsigned int len,
560 unsigned int copy_offset) {
561 // Check that all of the fields fit within the allocated space
562 assert(extra == (extra & 0x7)); // At most 3 bits
563 assert(copy_offset == (copy_offset & 0x7)); // At most 3 bits
564 assert(len == (len & 0x7f)); // At most 7 bits
565 return len | (copy_offset << 8) | (extra << 11);
566}
567
568static void ComputeTable() {
569 uint16 dst[256];

Callers 1

ComputeTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected