Home | History | Annotate | Download | only in zip

Lines Matching refs:crc

32  * A class that can be used to compute the CRC-32 of a data stream.
42 private int crc;
52 * Updates the CRC-32 checksum with the specified byte (the low
58 crc = update(crc, b);
62 * Updates the CRC-32 checksum with the specified array of bytes.
76 crc = updateBytes(crc, b, off, len);
80 * Updates the CRC-32 checksum with the specified array of bytes.
85 crc = updateBytes(crc, b, 0, b.length);
109 crc = updateByteBuffer(crc, ((DirectBuffer)buffer).address(), pos, rem);
111 crc = updateBytes(crc, buffer.array(), pos + buffer.arrayOffset(), rem);
115 crc = updateBytes(crc, b, 0, b.length);
121 * Resets CRC-32 to initial value.
124 crc = 0;
128 * Returns CRC-32 value.
131 return (long)crc & 0xffffffffL;
134 private native static int update(int crc, int b);
135 private native static int updateBytes(int crc, byte[] b, int off, int len);