def decode_hex_number(raw, codec=u'utf-8'):
 (raw, consumed) = decode_string(raw, codec=codec)
 return (int(raw, 16), consumed)

def decode_hex_number ( raw , codec = u'utf-8' ) : ( raw , consumed ) = decode_string ( raw , codec = codec ) return ( int ( raw , 16 ) , consumed )
return a variable length number encoded using hexadecimal encoding .