tia*_*mac 2 java asynchronous crc
public static int getCRC16(byte[] bytes) {
CRC16 crc = new CRC16();
crc.reset();
crc.update(bytes, 0, bytes.length);
return (int) crc.getValue();
}
Run Code Online (Sandbox Code Playgroud)
大量的线程会遇到这种方法,如果我不同步我会对crc特定的线程出错吗?