#NEWLINE# def ConcatCrc32c( crc_a , crc_b , num_bytes_in_b ) : #NEWLINE# #INDENT# 'Computes CRC32C for concat(A, B) given crc(A), crc(B) and len(B).\n\n  An explanation of the algorithm can be found at\n  crcutil.googlecode.com/files/crc-doc.1.0.pdf.\n\n  Args:\n    crc_a: A 32-bit integer representing crc(A) with least-significant\n           coefficient first.\n    crc_b: Same as crc_a.\n    num_bytes_in_b: Length of B in bytes.\n\n  Returns:\n    CRC32C for concat(A, B)\n  ' #NEWLINE# if ( not num_bytes_in_b ) : #NEWLINE# #INDENT# return crc_a #NEWLINE# #UNINDENT# return ( _ExtendByZeros ( crc_a , ( 8 * crc_b ) ) ^ crc_b )