com.jtransc.crypto.JTranscHash Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jtransc-rt-core Show documentation
Show all versions of jtransc-rt-core Show documentation
JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.
package com.jtransc.crypto;
import java.util.zip.CRC32;
public class JTranscHash {
static public int crc32(byte[] data, int offset, int length) {
CRC32 crc32 = new CRC32();
crc32.reset();
crc32.update(data, offset, length);
return (int) crc32.getValue();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy