MCPcopy Create free account
hub / github.com/defold/defold / ReadHostFile

Function ReadHostFile

engine/dlib/src/dlib/testutil.cpp:127–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127uint8_t* ReadHostFile(const char* path, uint32_t* file_size)
128{
129 SetupFS();
130
131 char path_buffer1[256];
132 const char* file_path = dmTestUtil::MakeHostPath(path_buffer1, sizeof(path_buffer1), path);
133 return dmTestUtil::ReadFile(file_path, file_size);
134}
135
136
137} // namespace

Callers 4

GetRawFileFunction · 0.85
TEST_FFunction · 0.85
GetRawFileFunction · 0.85
TEST_FFunction · 0.85

Calls 3

SetupFSFunction · 0.85
MakeHostPathFunction · 0.85
ReadFileFunction · 0.70

Tested by

no test coverage detected