MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / init

Method init

fs/xfile.cpp:41–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 uint64_t m_size = 0;
40 bool m_ownership;
41 int init(IFile** files, uint64_t n, bool ownership)
42 {
43 m_files.assign(files, files + n);
44 m_ownership = ownership;
45 assert(files);
46 assert(n > 0);
47 return 0;
48 }
49 virtual int close() override
50 {
51 if (m_ownership)

Callers 1

new_fileFunction · 0.45

Calls 1

assignMethod · 0.45

Tested by

no test coverage detected