Java CRC32 Byte Array CRC32(byte[] buffer)

Here you can find the source of CRC32(byte[] buffer)

Description

CRC

License

Open Source License

Declaration

public static int CRC32(byte[] buffer) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.zip.*;

public class Main {
    public static int CRC32(byte[] buffer) {
        CRC32 crc = new CRC32();
        crc.update(buffer);//from  w w w.  ja v a2 s.  c  o  m
        return (int) crc.getValue();
    }

    public static int CRC32(String str) {
        return (int) CRC32(str.getBytes());
    }
}

Related

  1. computeCRC(byte[] value)
  2. computeCRC32(byte[] bytes)
  3. crc32(byte[] array)
  4. crc32(byte[] bts)
  5. crc32(byte[] bytes)
  6. crc32(byte[] bytes)
  7. crc32(final byte[] bytes)
  8. crc32(String value)