Lines Matching defs:total_bytes
212 int total_bytes;
215 total_bytes = size*num;
217 if (!context || context->hidden.win32io.h==INVALID_HANDLE_VALUE || total_bytes<=0 || !size)
233 if (!WriteFile(context->hidden.win32io.h,ptr,total_bytes,&byte_written,NULL)) {
336 size_t total_bytes;
339 total_bytes = (maxnum * size);
340 if ( (maxnum <= 0) || (size <= 0) || ((total_bytes / maxnum) != (size_t) size) ) {
345 if (total_bytes > mem_available) {
346 total_bytes = mem_available;
349 SDL_memcpy(ptr, context->hidden.mem.here, total_bytes);
350 context->hidden.mem.here += total_bytes;
352 return (total_bytes / size);