ComputeCrc32() public méthode

public ComputeCrc32 ( UInt32 W, byte B ) : Int32
W System.UInt32
B byte
Résultat System.Int32
Exemple #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));
 }
Exemple #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);
 }