61 |
/** |
/** |
62 |
* Returns the data checksum computed so far. |
* Returns the data checksum computed so far. |
63 |
*/ |
*/ |
64 |
public long getValue (); |
long getValue(); |
65 |
|
|
66 |
/** |
/** |
67 |
* Resets the data checksum as if no update was ever called. |
* Resets the data checksum as if no update was ever called. |
68 |
*/ |
*/ |
69 |
public void reset (); |
void reset(); |
70 |
|
|
71 |
/** |
/** |
72 |
* Adds one byte to the data checksum. |
* Adds one byte to the data checksum. |
73 |
* |
* |
74 |
* @param bval the data value to add. The high byte of the int is ignored. |
* @param bval the data value to add. The high byte of the int is ignored. |
75 |
*/ |
*/ |
76 |
public void update (int bval); |
void update (int bval); |
77 |
|
|
78 |
/** |
/** |
79 |
* Adds the byte array to the data checksum. |
* Adds the byte array to the data checksum. |
82 |
* @param off the offset in the buffer where the data starts |
* @param off the offset in the buffer where the data starts |
83 |
* @param len the length of the data |
* @param len the length of the data |
84 |
*/ |
*/ |
85 |
public void update (byte[] buf, int off, int len); |
void update (byte[] buf, int off, int len); |
86 |
} |
} |