| 47 | } |
| 48 | |
| 49 | size_t tell() const { |
| 50 | #ifdef _WIN32 |
| 51 | __int64 ret = _ftelli64(fp); |
| 52 | #else |
| 53 | long ret = std::ftell(fp); |
| 54 | #endif |
| 55 | GGML_ASSERT(ret != -1); // this really shouldn't fail |
| 56 | return (size_t) ret; |
| 57 | } |
| 58 | |
| 59 | void seek(size_t offset, int whence) { |
| 60 | #ifdef _WIN32 |
no outgoing calls
no test coverage detected