public void updateChecksum() { if (CHECKSUM) { int x = handler.getChecksum(data, 0, pos - 2); data[pos - 2] = (byte) ('a' + (((x ^ (x >> 4)) & 0xf))); } }
public void updateChecksum() { if (CHECKSUM) { int x = handler.getChecksum(data, 0, pos - 2); data[pos - 2] = (byte) x; } }
public void check(int len) throws SQLException { if (CHECKSUM) { int x = handler.getChecksum(data, 0, len - 2); if (data[len - 2] == (byte) x) { return; } handler.handleInvalidChecksum(); } }
public void check(int len) throws SQLException { if (CHECKSUM) { int x = handler.getChecksum(data, 0, len - 2); if (data[len - 2] == (byte) ('a' + (((x ^ (x >> 4)) & 0xf)))) { return; } handler.handleInvalidChecksum(); } }