calculates this chunk 's crc value . concode_field_sep int TYPE_PROFILE concode_elem_sep byte[] data concode_elem_sep int TYPE_DATA concode_elem_sep int TYPE_TIME concode_elem_sep int crc concode_elem_sep int TYPE_PHYS concode_elem_sep int TYPE_HEADER concode_elem_sep int TYPE_GAMMA concode_elem_sep int TYPE_PALETTE concode_elem_sep int TYPE_END concode_elem_sep int type concode_elem_sep long[] crcTable concode_field_sep byte[] getInt concode_elem_sep PNGChunk readChunk concode_elem_sep int getType concode_elem_sep PNGChunk getChunk concode_elem_sep boolean isEmpty concode_elem_sep String toString concode_elem_sep void writeChunk concode_elem_sep boolean isEssentialChunk concode_elem_sep boolean isValidChunk
int function ( ) { long loc0 = 0xFFFFFFFFL ; byte [ ] loc1 = getInt ( type ) ; for ( int loc2 = 0 ; loc2 < 4 ; loc2 ++ ) loc0 = crcTable [ ( int ) ( ( loc0 ^ loc1 [ loc2 ] ) & 0xFF ) ] ^ ( loc0 >> 8 ) ; for ( int loc2 = 0 ; loc2 < data . length ; loc2 ++ ) loc0 = crcTable [ ( int ) ( ( loc0 ^ data [ loc2 ] ) & 0xFF ) ] ^ ( loc0 >> 8 ) ; return ( int ) ( loc0 ^ 0xFFFFFFFFL ) ; }