Lines Matching refs:FILE
6 * found in the LICENSE file.
39 size_t curr = ::ftell((FILE*)f); // remember where we are
40 ::fseek((FILE*)f, 0, SEEK_END); // go to the end
41 size_t size = ::ftell((FILE*)f); // record the size
42 ::fseek((FILE*)f, (long)curr, SEEK_SET); // go back to our prev loc
49 ::rewind((FILE*)f);
50 // ::fseek((FILE*)f, 0, SEEK_SET);
59 size_t curr = ::ftell((FILE*)f);
61 SkDEBUGF(("sk_fread: ftell(%p) returned -1 feof:%d ferror:%d\n", f, feof((FILE*)f), ferror((FILE*)f)));
64 // ::fseek((FILE*)f, (long)(curr + byteCount), SEEK_SET);
65 int err = ::fseek((FILE*)f, (long)byteCount, SEEK_CUR);
68 byteCount, curr, feof((FILE*)f), ferror((FILE*)f), err));
74 return ::fread(buffer, 1, byteCount, (FILE*)f);
80 return ::fwrite(buffer, 1, byteCount, (FILE*)f);
86 ::fflush((FILE*)f);
92 ::fclose((FILE*)f);