Searched refs:adler (Results 1 - 8 of 8) sorted by relevance

/openjdk7/jdk/src/share/classes/java/util/zip/
H A DAdler32.java41 private int adler = 1; field in class:Adler32
56 adler = update(adler, b);
69 adler = updateBytes(adler, b, off, len);
78 adler = updateBytes(adler, b, 0, b.length);
101 adler = updateByteBuffer(adler, ((DirectBuffer)buffer).address(), pos, rem);
103 adler
135 update(int adler, int b) argument
136 updateBytes(int adler, byte[] b, int off, int len) argument
138 updateByteBuffer(int adler, long addr, int off, int len) argument
[all...]
/openjdk7/jdk/src/share/native/java/util/zip/
H A DAdler32.c37 Java_java_util_zip_Adler32_update(JNIEnv *env, jclass cls, jint adler, jint b) argument
42 return adler32(adler, buf, 1);
46 Java_java_util_zip_Adler32_updateBytes(JNIEnv *env, jclass cls, jint adler, argument
51 adler = adler32(adler, buf + off, len);
54 return adler;
58 Java_java_util_zip_Adler32_updateByteBuffer(JNIEnv *env, jclass cls, jint adler, argument
63 adler = adler32(adler, buf + off, len);
65 return adler;
[all...]
H A DDeflater.c215 return ((z_stream *)jlong_to_ptr(addr))->adler;
H A DInflater.c174 return ((z_stream *)jlong_to_ptr(addr))->adler;
/openjdk7/jdk/src/share/native/java/util/zip/zlib-1.2.3/
H A Dzadler32.c39 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;}
81 uLong ZEXPORT adler32(adler, buf, len)
82 uLong adler;
90 sum2 = (adler >> 16) & 0xffff;
91 adler &= 0xffff;
95 adler += buf[0];
96 if (adler >= BASE)
97 adler -= BASE;
98 sum2 += adler;
[all...]
H A Ddeflate.c356 strm->adler = adler32(strm->adler, dictionary, dictLength);
403 strm->adler =
604 strm->adler = crc32(0L, Z_NULL, 0);
640 strm->adler = crc32(strm->adler, s->pending_buf,
669 putShortMSB(s, (uInt)(strm->adler >> 16));
670 putShortMSB(s, (uInt)(strm->adler & 0xffff));
672 strm->adler = adler32(0L, Z_NULL, 0);
683 strm->adler
[all...]
H A Dzlib.h123 uLong adler; /* adler32 value of the uncompressed data */ member in struct:z_stream_s
333 deflate() sets strm->adler to the adler32 checksum of all input read
455 below), inflate sets strm->adler to the adler32 checksum of the dictionary
457 strm->adler to the adler32 checksum of all output produced so far (that is,
533 gzip stream is being written, strm->adler is a crc32 instead of an adler32.
587 Upon return of this function, strm->adler is set to the adler32 value
592 adler32 value is not computed and strm->adler is not set.
749 return a Z_DATA_ERROR). If a gzip stream is being decoded, strm->adler is
1284 ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len));
1292 uLong adler
[all...]
H A Dinflate.c136 strm->adler = 1; /* to support ill-conceived Java test suite */
653 strm->adler = state->check = adler32(0L, Z_NULL, 0);
781 strm->adler = state->check = crc32(0L, Z_NULL, 0);
787 strm->adler = state->check = REVERSE(hold);
795 strm->adler = state->check = adler32(0L, Z_NULL, 0);
1108 strm->adler = state->check =
1170 strm->adler = state->check =

Completed in 62 milliseconds