MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / seek

Method seek

examples/export-lora/export-lora.cpp:59–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 }
58
59 void seek(size_t offset, int whence) {
60#ifdef _WIN32
61 int ret = _fseeki64(fp, (__int64) offset, whence);
62#else
63 int ret = std::fseek(fp, (long) offset, whence);
64#endif
65 GGML_ASSERT(ret == 0); // same
66 }
67
68 void read_raw(void * ptr, size_t size) {
69 if (size == 0) {

Callers 2

load_loraFunction · 0.45
export_loraFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected