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

Method GetCRC50

Libraries/unrar/rawread.cpp:175–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173
174
175uint RawRead::GetCRC50() // RAR 5.0 block CRC.
176{
177 if (DataSize<=4)
178 return 0xffffffff;
179 return CRC32(0xffffffff,&Data[4],DataSize-4) ^ 0xffffffff;
180}
181
182
183// Read vint from arbitrary byte array.

Callers 2

ReadHeader50Method · 0.80
ReadRawMethod · 0.80

Calls 1

CRC32Function · 0.85

Tested by

no test coverage detected