java實現CRC16_X25算法,參考c語言移植過來,解決數據溢出問題

public static int getCrc_CRC16_X25(byte[] bytes) { int i, j, lsb; int h = 0xffff; for (i = 0; i < bytes.length; i++) { h ^= (bytes[i] & 0xff); h &= 0xffff; for (j =
相關文章
相關標籤/搜索