Java me JavaME中的CRC32
在“Java ME Micro Edition”中创建“CRC32”校验和值有何意义Java me JavaME中的CRC32,java-me,crc32,Java Me,Crc32,在“Java ME Micro Edition”中创建“CRC32”校验和值有何意义 我正在使用的Micro Edition SDK不包括CRC方法或“Biginteger”,我从C迁移的任何东西都会遇到带符号长的问题。在“Java”中找到了CRC32的源代码 public void update (int bval) { int c = ~crc; c = crc_table[(c ^ bval) & 0xff] ^ (c >>> 8); cr
我正在使用的Micro Edition SDK不包括CRC方法或“Biginteger”,我从C迁移的任何东西都会遇到带符号长的问题。在“Java”中找到了CRC32的源代码
public void update (int bval)
{
int c = ~crc;
c = crc_table[(c ^ bval) & 0xff] ^ (c >>> 8);
crc = ~c;
}