Java CRC32 Byte Array crc32(final byte[] bytes)

Here you can find the source of crc32(final byte[] bytes)

Description

crc

License

Apache License

Declaration

public static long crc32(final byte[] bytes) 

Method Source Code

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

import java.util.zip.CRC32;
import java.util.zip.Checksum;

public class Main {
    public static long crc32(final byte[] bytes) {
        Checksum checksum = new CRC32();
        checksum.update(bytes, 0, bytes.length);
        long checksumValue = checksum.getValue();
        return checksumValue;
    }//  ww  w.j a va2s .  co  m
}

Related

  1. crc32(byte[] array)
  2. crc32(byte[] bts)
  3. CRC32(byte[] buffer)
  4. crc32(byte[] bytes)
  5. crc32(byte[] bytes)
  6. crc32(String value)
  7. crc32Number(String s)
  8. crcBytes(byte[]... data)
  9. createRandomCrc32Hex()