You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/org/apache/commons/codec/digest/CRC16.java
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -22,8 +22,7 @@
22
22
importjava.util.zip.Checksum;
23
23
24
24
/**
25
-
* CRC-16 checksum implementation based on polynomial {@code x<sup>16</spu> + x^15 + x^2 + 1 (0x8005)} and the initial value {@code 0x0000}. This CRC variant is
26
-
* also known as CRC-16-MODBUS.
25
+
* CRC-16 checksum implementations you can customize with a table and input value.
27
26
* <p>
28
27
* Since there are so many CRC-16 variants, we do not pick a default.
29
28
* </p>
@@ -211,6 +210,9 @@ public static int[] getModbusTable() {
211
210
/**
212
211
* Creates a new CRC16-MODBUS.
213
212
* <p>
213
+
* CRC-16 checksum implementation based on polynomial {@code x<sup>16</spu> + x^15 + x^2 + 1 (0x8005)}.
0 commit comments