Here you can find the source of crc32(byte[] bts)
Parameter | Description |
---|---|
bts | a parameter |
public static final long crc32(byte[] bts)
//package com.java2s; //License from project: Apache License import java.util.zip.CRC32; public class Main { /**/*from w w w. j a va 2 s. c o m*/ * Calculates the crc32 and casts it to an integer, * this avoids clojure's number autoboxing * * @param bts * @return */ public static final long crc32(byte[] bts) { final CRC32 crc = new CRC32(); crc.update(bts); return crc.getValue(); } }