MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / seek

Method seek

src/serialization/impl/file.cpp:77–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 }
76
77 void seek(size_t offset) override {
78 auto err = fseek(m_fptr, offset, SEEK_SET);
79 mgb_assert(!err);
80 }
81
82 size_t tell() override {
83 auto pos = ftell(m_fptr);

Callers 15

mainFunction · 0.45
dump_graphFunction · 0.45
run_indexFunction · 0.45
test_metadataFunction · 0.45
test_replace_varFunction · 0.45
test_replace_oprFunction · 0.45
test_splice_networkFunction · 0.45
test_modify_paramsFunction · 0.45
test_make_constFunction · 0.45
test_add_inputFunction · 0.45
test_add_remove_outputFunction · 0.45

Calls

no outgoing calls

Tested by 15

test_metadataFunction · 0.36
test_replace_varFunction · 0.36
test_replace_oprFunction · 0.36
test_splice_networkFunction · 0.36
test_modify_paramsFunction · 0.36
test_make_constFunction · 0.36
test_add_inputFunction · 0.36
test_add_remove_outputFunction · 0.36
test_queryFunction · 0.36
test_reset_batchsizeFunction · 0.36
test_modify_opr_nameFunction · 0.36