(expression, payload)
return length
Returns the query output length.
Returns the query output length.
Returns the query output length .
def queryOutputLength(expression, payload):
    """
    Returns the query output length.
    """

    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