Home | History | Annotate | Download | only in file

Lines Matching refs:total_bytes

272 	int		total_bytes; 
275 total_bytes = size*num;
277 if (!context || context->hidden.win32io.h==INVALID_HANDLE_VALUE || total_bytes<=0 || !size)
293 if (!WriteFile(context->hidden.win32io.h,ptr,total_bytes,&byte_written,NULL)) {
396 size_t total_bytes;
399 total_bytes = (maxnum * size);
400 if ( (maxnum <= 0) || (size <= 0) || ((total_bytes / maxnum) != (size_t) size) ) {
405 if (total_bytes > mem_available) {
406 total_bytes = mem_available;
409 SDL_memcpy(ptr, context->hidden.mem.here, total_bytes);
410 context->hidden.mem.here += total_bytes;
412 return (total_bytes / size);