Lines Matching refs:file_handle
45 bool SetFilePointer(HANDLE file_handle, size_t position) {
47 ::SetFilePointer(file_handle,
54 // given by |file_handle| into |buffer|.
55 bool ReadNextBytes(HANDLE file_handle, void* buffer, size_t bytes_to_read) {
56 DCHECK(file_handle != INVALID_HANDLE_VALUE);
62 ::ReadFile(file_handle,
71 // contains |desired_length| bytes read from the file given by |file_handle|.
73 // It is assumed that |file_handle| has been used to sequentially populate
76 bool ReadMissingBytes(HANDLE file_handle,
79 DCHECK(file_handle != INVALID_HANDLE_VALUE);
88 return ReadNextBytes(file_handle,
125 // of the file denoted by |file_handle|. The |temp_buffer| is (re)used as
128 bool ReadThroughSection(HANDLE file_handle,
133 DCHECK(file_handle != INVALID_HANDLE_VALUE);
143 if (!SetFilePointer(file_handle, section->PointerToRawData))
148 if (!ReadNextBytes(file_handle, temp_buffer, temp_buffer_size))
156 return ReadNextBytes(file_handle, temp_buffer, bytes_to_read);