| 872 | } |
| 873 | |
| 874 | size_t tell() const { |
| 875 | #ifdef _WIN32 |
| 876 | __int64 ret = _ftelli64(fp); |
| 877 | #else |
| 878 | long ret = std::ftell(fp); |
| 879 | #endif |
| 880 | GGML_ASSERT(ret != -1); // this really shouldn't fail |
| 881 | return (size_t) ret; |
| 882 | } |
| 883 | |
| 884 | void seek(size_t offset, int whence) const { |
| 885 | #ifdef _WIN32 |
no outgoing calls
no test coverage detected