Java Checksum Calculate checkSum(byte abyte0[])

Here you can find the source of checkSum(byte abyte0[])

Description

check Sum

License

Apache License

Declaration

public static int checkSum(byte abyte0[]) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static int checkSum(byte abyte0[]) {
        int i = 0;
        for (int j = 0; j < abyte0.length; j++)
            i += abyte0[j] & 255;/*from   w ww  .j  a  v  a  2s . c  o  m*/

        return i;
    }
}

Related

  1. calcCheckSum(byte[] data, int offset, int maxIdx)
  2. calcChecksum(String value, int length)
  3. calculateChecksum(InputStream is, String algorithm)
  4. calculateChecksums(Optional zos, InputStream inputStream, Set checksumAlgorithms)
  5. checkSum(boolean[] a)
  6. checksum(byte current, final byte[] data, final int offset, final int length)
  7. checkSum(byte value)
  8. checkSum(byte[] b, int offset, int length)
  9. checksum(byte[] buf, int off, int len)