Home
last modified time | relevance | path

Searched refs:total_need (Results 1 – 1 of 1) sorted by relevance

/external/qemu/distrib/sdl-1.2.15/src/file/
DSDL_rwops.c224 int total_need; in win32_file_read() local
229 total_need = size*maxnum; in win32_file_read()
231 if (!context || context->hidden.win32io.h == INVALID_HANDLE_VALUE || total_need<=0 || !size) in win32_file_read()
238 read_ahead = SDL_min(total_need, context->hidden.win32io.buffer.left); in win32_file_read()
242 if (read_ahead == total_need) { in win32_file_read()
246 total_need -= read_ahead; in win32_file_read()
250 if (total_need < READAHEAD_BUFFER_SIZE) { in win32_file_read()
255 read_ahead = SDL_min(total_need, (int)byte_read); in win32_file_read()
261 if (!ReadFile(context->hidden.win32io.h,ptr,total_need,&byte_read,NULL)) { in win32_file_read()