Searched refs:crc (Results 26 - 41 of 41) sorted by relevance

12

/openjdk7/jdk/src/share/native/java/util/zip/zlib-1.2.3/
H A Dgzio.c87 uLong crc; /* crc32 of uncompressed data */ member in struct:gz_stream
147 s->crc = crc32(0L, Z_NULL, 0);
369 if ((flags & HEAD_CRC) != 0) { /* skip the header crc */
424 Bytef *start = (Bytef*)buf; /* starting point for crc computation */
494 s->crc = crc32(s->crc, start, (uInt)(s->stream.next_out - start));
497 if (getLong(s) != s->crc) {
508 s->crc = crc32(0L, Z_NULL, 0);
514 s->crc = crc32(s->crc, star
[all...]
H A Dzlib.h145 int hcrc; /* true if there was or will be a header crc */
532 no header crc, and the operating system will be set to 255 (unknown). If a
704 available there. If hcrc is true, a gzip header crc is included. Note that
706 1.3.x) do not support header crc's, and will report that it is a "multi-part
1005 and decode gzip streams (to avoid linking crc code)
1309 ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
1313 value for the for the crc. Pre- and post-conditioning (one's complement) is
1317 uLong crc = crc32(0L, Z_NULL, 0);
1320 crc = crc32(crc, buffe
[all...]
/openjdk7/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/
H A DZipFileSystem.java1369 // store size, compressed size, and crc-32 in LOC header
1535 private CRC32 crc; field in class:ZipFileSystem.EntryOutputStream
1546 crc = new CRC32();
1569 crc.update(b, off, len);
1580 e.crc = crc.getValue();
1585 e.crc = crc.getValue();
1590 //crc.reset();
1804 long crc field in class:ZipFileSystem.Entry
[all...]
/openjdk7/jdk/src/share/classes/sun/awt/image/
H A DPNGImageDecoder.java716 int calcCRC = crc(inbuf,pos+4,chunkLength+4);
717 if(chunkCRC!=calcCRC && checkCRC) throw new PNGException("crc corruption");
771 crc() routine below)). */
773 static private int update_crc(int crc, byte[] buf, int offset, int len) { argument
774 int c = crc;
781 static private int crc(byte[] buf, int offset, int len) { method in class:PNGImageDecoder
/openjdk7/hotspot/src/share/vm/classfile/
H A DclassLoader.hpp94 jint crc; /* crc of uncompressed data */ member in struct:__anon152
H A DclassLoader.cpp1120 jint crc; /* crc of uncompressed data */ member in struct:real_jzentry13
1152 jint crc; /* crc of uncompressed data */ member in struct:real_jzentry12
/openjdk7/jdk/src/share/native/java/util/zip/
H A Dzip_util.h78 #define LOCCRC(b) LG(b, 14) /* crc of uncompressed data */
87 #define EXTCRC(b) LG(b, 4) /* crc of uncompressed data */
99 #define CENCRC(b) LG(b, 16) /* crc of uncompressed data */
149 * - jzentry time and crc fields are signed even though they really
164 jint crc; /* crc of uncompressed data */ member in struct:jzentry
H A DZipFile.c242 return (jlong)ze->crc & 0xffffffffUL;
H A Dzip_util.c1013 ze->crc = CENCRC(cen);
/openjdk7/jdk/src/share/native/sun/awt/libpng/
H A Dpngstruct.h145 png_uint_32 crc; /* current chunk CRC value */ member in struct:png_struct_def
H A Dpng.c138 png_ptr->crc = crc32(0, Z_NULL, 0);
165 png_ptr->crc = crc32(png_ptr->crc, ptr, (uInt)length);
H A Dpngrutil.c201 /* Reset the crc and run it over the chunk name. */
276 png_uint_32 crc; local
301 crc = png_get_uint_32(crc_bytes);
302 return ((int)(crc != png_ptr->crc));
H A Dpngwutil.c165 /* Reset the crc and run it over the chunk name */
217 /* Write the crc in a single operation */
218 png_save_uint_32(buf, png_ptr->crc);
/openjdk7/jdk/src/share/classes/sun/tools/jar/
H A DMain.java1186 final CRC32 crc = new CRC32(); field in class:Main.CRC32OutputStream
1192 crc.update(r);
1197 crc.update(b, off, len);
1208 e.setCrc(crc.getValue());
/openjdk7/jdk/src/share/classes/java/util/zip/
H A DZipFile.java535 e.crc = getEntryCrc(jzentry);
/openjdk7/jdk/src/share/classes/com/sun/imageio/plugins/png/
H A DPNGImageReader.java92 int crc = stream.readInt();

Completed in 179 milliseconds

12