def verifyChecksum(buffer):
 buff0 = buffer[0]
 buff4 = buffer[4]
 buff5 = buffer[5]
 tempBuffer = setChecksum(buffer)
 if ((buff0 == tempBuffer[0]) and (buff4 == tempBuffer[4]) and (buff5 == tempBuffer[5])):
  return True
 return False

def verifyChecksum ( buffer ) : buff0 = buffer [ 0 ] buff4 = buffer [ 4 ] buff5 = buffer [ 5 ] tempBuffer = setChecksum ( buffer ) if ( ( buff0 == tempBuffer [ 0 ] ) and ( buff4 == tempBuffer [ 4 ] ) and ( buff5 == tempBuffer [ 5 ] ) ) : return True return False
verifies the checksum of a given buffer using the traditional u3/ue9 command structure .