def queryOutputLength(expression, payload):
 infoMsg = 'retrieving the length of query output'
 logger.info(infoMsg)
 start = time.time()
 lengthExprUnescaped = agent.forgeQueryOutputLength(expression)
 (count, length) = bisection(payload, lengthExprUnescaped, charsetType=CHARSET_TYPE.DIGITS)
 debugMsg = ('performed %d queries in %.2f seconds' % (count, calculateDeltaSeconds(start)))
 logger.debug(debugMsg)
 if (length == ' '):
  length = 0
 return length

def queryOutputLength ( expression , payload ) : infoMsg = 'retrieving the length of query output' logger . info ( infoMsg ) start = time . time ( ) lengthExprUnescaped = agent . forgeQueryOutputLength ( expression ) ( count , length ) = bisection ( payload , lengthExprUnescaped , charsetType = CHARSET_TYPE . DIGITS ) debugMsg = ( 'performed %d queries in %.2f seconds' % ( count , calculateDeltaSeconds ( start ) ) ) logger . debug ( debugMsg ) if ( length == ' ' ) : length = 0 return length
returns the query output length .