Home
last modified time | relevance | path

Searched refs:bytes_read_so_far (Results 1 - 2 of 2) sorted by relevance

/third_party/gn/src/base/files/
H A Dfile_util.cc140 size_t bytes_read_so_far = 0; in ReadFileToStringWithMaxSize() local
145 while ((bytes_read_this_pass = fread(&local_contents[bytes_read_so_far], 1, in ReadFileToStringWithMaxSize()
147 if ((max_size - bytes_read_so_far) < bytes_read_this_pass) { in ReadFileToStringWithMaxSize()
149 bytes_read_so_far = max_size; in ReadFileToStringWithMaxSize()
155 if (bytes_read_so_far == 0) in ReadFileToStringWithMaxSize()
158 bytes_read_so_far += bytes_read_this_pass; in ReadFileToStringWithMaxSize()
163 local_contents.resize(bytes_read_so_far + chunk_size); in ReadFileToStringWithMaxSize()
169 contents->resize(bytes_read_so_far); in ReadFileToStringWithMaxSize()
/third_party/astc-encoder/Source/
H A Dstb_image.h5566 int bytes_read_so_far = s->callback_already_read + (int)(s->img_buffer - s->img_buffer_original);
5569 if (bytes_read_so_far <= 0 || bytes_read_so_far > header_limit) {
5572 // we established that bytes_read_so_far is positive and sensible.
5574 // negative, and guarantees that info.offset >= bytes_read_so_far > 0. this in turn
5576 if (info.offset < bytes_read_so_far || info.offset - bytes_read_so_far > extra_data_limit) {
5579 stbi__skip(s, info.offset - bytes_read_so_far);

Completed in 13 milliseconds