

def _fastgetMP(data, count=1):
    mp = []
    c = 0
    for i in range(count):
        length = struct.unpack('!L', data[c:(c + 4)])[0]
        mp.append(long(gmpy.mpz((data[(c + 4):((c + 4) + length)][::(- 1)] + '\x00'), 256)))
        c += (length + 4)
    return (tuple(mp) + (data[c:],))

dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/conch/ssh/common.py _fastgetMP/original