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

Function Checksum14

Libraries/unrar/crc.cpp:90–99  ·  view source on GitHub ↗

For RAR 1.4 archives in case somebody still has them.

Source from the content-addressed store, hash-verified

88#ifndef SFX_MODULE
89// For RAR 1.4 archives in case somebody still has them.
90ushort Checksum14(ushort StartCRC,const void *Addr,size_t Size)
91{
92 byte *Data=(byte *)Addr;
93 for (size_t I=0;I<Size;I++)
94 {
95 StartCRC=(StartCRC+Data[I])&0xffff;
96 StartCRC=((StartCRC<<1)|(StartCRC>>15))&0xffff;
97 }
98 return StartCRC;
99}
100#endif
101
102

Callers 1

UpdateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected