src/java.base/share/native/libzip/CRC32.c
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/src/java.base/share/native/libzip/CRC32.c	Thu Jun 25 12:09:51 2015
--- new/src/java.base/share/native/libzip/CRC32.c	Thu Jun 25 12:09:50 2015

*** 41,51 **** --- 41,51 ---- buf[0] = (Bytef)b; return crc32(crc, buf, 1); } JNIEXPORT jint JNICALL ! Java_java_util_zip_CRC32_updateBytesImpl(JNIEnv *env, jclass cls, jint crc, jarray b, jint off, jint len) { Bytef *buf = (*env)->GetPrimitiveArrayCritical(env, b, 0); if (buf) { crc = crc32(crc, buf + off, len);
*** 59,69 **** --- 59,69 ---- { return crc32(crc, (Bytef*)buf, len); } JNIEXPORT jint JNICALL ! Java_java_util_zip_CRC32_updateByteBufferImpl(JNIEnv *env, jclass cls, jint crc, jlong address, jint off, jint len) { Bytef *buf = (Bytef *)jlong_to_ptr(address); if (buf) { crc = crc32(crc, buf + off, len);

src/java.base/share/native/libzip/CRC32.c
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File