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

Method seek

llama.cpp:884–891  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers 8

loadMethod · 0.45
lazy_load_fileFunction · 0.45
load_data_forMethod · 0.45
loadMethod · 0.45
lazy_load_fileFunction · 0.45
add_tensorMethod · 0.45
write_tensors_to_fileMethod · 0.45
_try_load_merges_txtMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected