MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / GetCRC15

Method GetCRC15

Libraries/unrar/rawread.cpp:166–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164
165
166uint RawRead::GetCRC15(bool ProcessedOnly) // RAR 1.5 block CRC.
167{
168 if (DataSize<=2)
169 return 0;
170 uint HeaderCRC=CRC32(0xffffffff,&Data[2],(ProcessedOnly ? ReadPos:DataSize)-2);
171 return ~HeaderCRC & 0xffff;
172}
173
174
175uint RawRead::GetCRC50() // RAR 5.0 block CRC.

Callers 1

ReadHeader15Method · 0.80

Calls 1

CRC32Function · 0.85

Tested by

no test coverage detected