Searched refs:bytes_read_so_far (Results 1 – 1 of 1) sorted by relevance
154 size_t bytes_read_so_far = 0; in ReadFileToStringWithMaxSize() local159 while ((bytes_read_this_pass = fread(&local_contents[bytes_read_so_far], 1, in ReadFileToStringWithMaxSize()161 if ((max_size - bytes_read_so_far) < bytes_read_this_pass) { in ReadFileToStringWithMaxSize()163 bytes_read_so_far = max_size; in ReadFileToStringWithMaxSize()169 if (bytes_read_so_far == 0) in ReadFileToStringWithMaxSize()172 bytes_read_so_far += bytes_read_this_pass; in ReadFileToStringWithMaxSize()177 local_contents.resize(bytes_read_so_far + chunk_size); in ReadFileToStringWithMaxSize()183 contents->resize(bytes_read_so_far); in ReadFileToStringWithMaxSize()