docs: def _decode_num(buf):
      """ Decodes little-endian integer from buffer
  
      Buffer can be of any size
      """
      return functools.reduce(lambda acc, val: acc * 256 + tds_base.my_ord(val), reversed(buf), 0)