public static byte updateBlock(byte[] data, int len, byte crc) {
        for (int i = 0; i < len; i++)
            crc = CRC8_TABLE[crc ^ data[i]];
        return crc;
    }
public static byte updateBlock ( byte [ ] data , int len , byte crc ) { for ( int i = 0 ; i < len ; i ++ ) crc = CRC8_TABLE [ crc ^ data [ i ] ] ; return crc ; }
Update the CRC value with data from a byte array.

@param data  The byte array
@param len   The byte array length
@param crc   The starting CRC value
@return      The updated CRC value