equal
deleted
inserted
replaced
58 crc = update(crc, b); |
58 crc = update(crc, b); |
59 } |
59 } |
60 |
60 |
61 /** |
61 /** |
62 * Updates the CRC-32 checksum with the specified array of bytes. |
62 * Updates the CRC-32 checksum with the specified array of bytes. |
|
63 * |
|
64 * @throws ArrayIndexOutOfBoundsException |
|
65 * if {@code off} is negative, or {@code len} is negative, |
|
66 * or {@code off+len} is greater than the length of the |
|
67 * array {@code b} |
63 */ |
68 */ |
64 public void update(byte[] b, int off, int len) { |
69 public void update(byte[] b, int off, int len) { |
65 if (b == null) { |
70 if (b == null) { |
66 throw new NullPointerException(); |
71 throw new NullPointerException(); |
67 } |
72 } |