temp.txt created online with Bitbucket

This commit is contained in:
SWG Source
2018-03-23 16:07:37 -07:00
committed by CekisSWG
parent e8c5b66956
commit f52aebcfb1
82555 changed files with 1 additions and 4633262 deletions
@@ -1,23 +0,0 @@
// string_crc.java
package script;
// ======================================================================
public final class string_crc implements crc
{
public static int getStringCrc(String s)
{
int crc = CRC_INIT;
if (s != null)
{
char[] c = s.toCharArray();
for (int i = 0; i < c.length; ++i)
crc = crctable[((crc>>24) ^ (c[i]&0xff)) & 0xff] ^ (crc << 8);
}
return crc ^ CRC_INIT;
}
}
// ======================================================================