(fd, bufferSize=1024, max_mem_size=16384)
return io
Tries to read data from the supplied stream, and puts the results into a
    StmartIO object. The data will be in memory or in a temporary file,
    depending on how much it's been read
    Returns a SmartIO object
Tries to read data from the supplied stream, and puts the results into a
    StmartIO object. The data will be in memory or in a temporary file,
    depending on how much it's been read
    Returns a SmartIO object
Tries to read data from the supplied stream and puts the results into a StmartIO object . The data will be in memory or in a temporary file depending on how much it s been read Returns a SmartIO object
def _smart_total_read(fd, bufferSize=1024, max_mem_size=16384):
    """
    Tries to read data from the supplied stream, and puts the results into a
    StmartIO object. The data will be in memory or in a temporary file,
    depending on how much it's been read
    Returns a SmartIO object
    """
    io = SmartIO(max_mem_size=max_mem_size)
    while 1:
        chunk = fd.read(bufferSize)
        if not chunk:
            # EOF reached
            break
        io.write(chunk)

    return io
def _smart_total_read ( fd , bufferSize = 1024 , max_mem_size = 16384 ) : io = SmartIO ( max_mem_size = max_mem_size ) while 1 : chunk = fd . read ( bufferSize ) if not chunk : # EOF reached break io . write ( chunk ) return io