'@param timeout: If reading from a regular file, this parameter must be 0.
@type timeout: int'

def __init__(self, fid, offset, max_return_bytes_count, min_return_bytes_count, timeout=0, remaining=0):

    self.fid = fid
    self.remaining = remaining
    self.max_return_bytes_count = max_return_bytes_count
    self.min_return_bytes_count = min_return_bytes_count
    self.offset = offset
    self.timeout = timeout
