Lines Matching defs:read_ahead
226 int read_ahead;
238 read_ahead = SDL_min(total_need, context->hidden.win32io.buffer.left);
239 SDL_memcpy(ptr, data, read_ahead);
240 context->hidden.win32io.buffer.left -= read_ahead;
242 if (read_ahead == total_need) {
245 ptr = (char *)ptr + read_ahead;
246 total_need -= read_ahead;
247 total_read += read_ahead;
255 read_ahead = SDL_min(total_need, (int)byte_read);
256 SDL_memcpy(ptr, context->hidden.win32io.buffer.data, read_ahead);
258 context->hidden.win32io.buffer.left = byte_read-read_ahead;
259 total_read += read_ahead;