Searched refs:bytes_read_so_far (Results 1 – 2 of 2) sorted by relevance
94 uint16_t bytes_read_so_far = 0; in Tpm2NvRead() local111 in.offset = offset + bytes_read_so_far; in Tpm2NvRead()112 if ((uint32_t)(size - bytes_read_so_far) < MAX_NV_BUFFER_SIZE) { in Tpm2NvRead()114 in.size = (uint16_t)size - bytes_read_so_far; in Tpm2NvRead()124 memcpy_S((uint8_t*)data + bytes_read_so_far, size - bytes_read_so_far, in Tpm2NvRead()126 bytes_read_so_far += out.data.b.size; in Tpm2NvRead()127 if (bytes_read_so_far == size) { in Tpm2NvRead()
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()