| 882 | } |
| 883 | |
| 884 | void seek(size_t offset, int whence) const { |
| 885 | #ifdef _WIN32 |
| 886 | int ret = _fseeki64(fp, (__int64) offset, whence); |
| 887 | #else |
| 888 | int ret = std::fseek(fp, (long) offset, whence); |
| 889 | #endif |
| 890 | GGML_ASSERT(ret == 0); // same |
| 891 | } |
| 892 | |
| 893 | void read_raw(void * ptr, size_t len) const { |
| 894 | if (len == 0) { |
no outgoing calls
no test coverage detected