def _decode_num(buf):
    return reduce(lambda acc, val: acc * 256 + ord(val), reversed(buf), 0)
Decodes little-endian integer from buffer
dataset/ETHPy150Open denisenkom/pytds/pytds/tds_types.py/_decode_num