Home | History | Annotate | Download | only in ports

Lines Matching full:file

6 ** you may not use this file except in compliance with the License. 
47 size_t curr = ::ftell((FILE*)f); // remember where we are
48 ::fseek((FILE*)f, 0, SEEK_END); // go to the end
49 size_t size = ::ftell((FILE*)f); // record the size
50 ::fseek((FILE*)f, (long)curr, SEEK_SET); // go back to our prev loc
57 ::rewind((FILE*)f);
58 // ::fseek((FILE*)f, 0, SEEK_SET);
67 size_t curr = ::ftell((FILE*)f);
69 SkDEBUGF(("sk_fread: ftell(%p) returned -1 feof:%d ferror:%d\n", f, feof((FILE*)f), ferror((FILE*)f)));
72 // ::fseek((FILE*)f, (long)(curr + byteCount), SEEK_SET);
73 int err = ::fseek((FILE*)f, (long)byteCount, SEEK_CUR);
76 byteCount, curr, feof((FILE*)f), ferror((FILE*)f), err));
82 return ::fread(buffer, 1, byteCount, (FILE*)f);
88 return ::fwrite(buffer, 1, byteCount, (FILE*)f);
94 ::fflush((FILE*)f);
100 ::fclose((FILE*)f);