internal static void AddHashCode(ref UInt32 checkSum, int hashValue) { UInt32 value = (UInt32)hashValue; checkSum = CrcTable[(checkSum ^ (value & 0xFF)) & 0xFF] ^ (checkSum >> 8); checkSum = CrcTable[(checkSum ^ ((value >> 8) & 0xFF)) & 0xFF] ^ (checkSum >> 8); checkSum = CrcTable[(checkSum ^ ((value >> 16) & 0xFF)) & 0xFF] ^ (checkSum >> 8); checkSum = CrcTable[(checkSum ^ ((value >> 24) & 0xFF)) & 0xFF] ^ (checkSum >> 8);
What do you think about this topic? Send feedback!
|
Copyright (c) 2017. All rights reserved.
|