ComputeCrc32() public method

public ComputeCrc32 ( UInt32 W, byte B ) : Int32
W System.UInt32
B byte
return System.Int32
Example #1
0
 private static void UpdateKeys(byte byteval)
 {
     Keys[0]  = (UInt32)crcgen.ComputeCrc32(Keys[0], byteval);
     Keys[1] += (byte)Keys[0];
     Keys[1]  = Keys[1] * 134775813 + 1;
     Keys[2]  = (UInt32)crcgen.ComputeCrc32(Keys[2], (byte)(Keys[1] >> 24));
 }
Example #2
0
 private static void UpdateKeys(byte byteval)
 {
     Keys[0] = (UInt32)crcgen.ComputeCrc32(Keys[0], byteval);
     Keys[1] = Keys[1] + (byte)Keys[0];
     Keys[1] = Keys[1] * 0x08088405 + 1;
     Keys[2] = (UInt32)crcgen.ComputeCrc32(Keys[2], (byte)(Keys[1] >> 24));
 }
 private UInt32[] UpdateKeys(byte byteval, UInt32[] Keys, CRC32 crcgen)
 {
     Keys[0] = (UInt32)crcgen.ComputeCrc32(Keys[0], byteval);
     Keys[1] = Keys[1] + (byte)Keys[0];
     Keys[1] = Keys[1] * 0x08088405 + 1;
     Keys[2] = (UInt32)crcgen.ComputeCrc32(Keys[2], (byte)(Keys[1] >> 24));
     return Keys;
 }
 private UInt32[] UpdateKeys(byte byteval, UInt32[] Keys, CRC32 crcgen)
 {
     Keys[0] = (UInt32)crcgen.ComputeCrc32(Keys[0], byteval);
     Keys[1] = Keys[1] + (byte)Keys[0];
     Keys[1] = Keys[1] * 0x08088405 + 1;
     Keys[2] = (UInt32)crcgen.ComputeCrc32(Keys[2], (byte)(Keys[1] >> 24));
     return(Keys);
 }