| 65 | } |
| 66 | |
| 67 | unsigned int DiskFile::length() |
| 68 | { |
| 69 | if (!mFileHandle) |
| 70 | return 0; |
| 71 | int pos = ftell(mFileHandle); |
| 72 | fseek(mFileHandle, 0, SEEK_END); |
| 73 | int len = ftell(mFileHandle); |
| 74 | fseek(mFileHandle, pos, SEEK_SET); |
| 75 | return len; |
| 76 | } |
| 77 | |
| 78 | void DiskFile::seek(int aOffset) |
| 79 | { |
no outgoing calls
no test coverage detected