Class PngCrc
- java.lang.Object
-
- org.apache.commons.imaging.formats.png.PngCrc
-
class PngCrc extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private long[]
crc_table
private boolean
crc_table_computed
-
Constructor Summary
Constructors Constructor Description PngCrc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
continue_partial_crc(long old_crc, byte[] buf, int len)
int
crc(byte[] buf, int len)
long
finish_partial_crc(long old_crc)
private void
make_crc_table()
long
start_partial_crc(byte[] buf, int len)
private long
update_crc(long crc, byte[] buf)
-
-
-
Method Detail
-
make_crc_table
private void make_crc_table()
-
update_crc
private long update_crc(long crc, byte[] buf)
-
crc
public final int crc(byte[] buf, int len)
-
start_partial_crc
public final long start_partial_crc(byte[] buf, int len)
-
continue_partial_crc
public final long continue_partial_crc(long old_crc, byte[] buf, int len)
-
finish_partial_crc
public final long finish_partial_crc(long old_crc)
-
-