Initial commit.

This commit is contained in:
Redacted by Stellabellum INC
2013-09-10 23:17:15 -07:00
commit 485a019196
81032 changed files with 7634843 additions and 0 deletions
@@ -0,0 +1,29 @@
// ======================================================================
//
// string_crc.java
//
// Copyright 2004 Sony Online Entertainment
//
// ======================================================================
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;
}
}
// ======================================================================