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

Function ReadFile

engine/resource/src/providers/provider.cpp:177–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177Result ReadFile(HArchive archive, dmhash_t path_hash, const char* path, uint8_t* buffer, uint32_t buffer_len)
178{
179 return archive->m_Loader->m_ReadFile(archive->m_Internal, path_hash, path, buffer, buffer_len);
180}
181
182Result ReadFilePartial(HArchive archive, dmhash_t path_hash, const char* path, uint32_t offset, uint32_t size, uint8_t* buffer, uint32_t* nread)
183{

Callers 6

ReadResourceFunction · 0.50
TEST_PFunction · 0.50
TEST_FFunction · 0.50
TEST_PFunction · 0.50
TEST_FFunction · 0.50
TEST_FFunction · 0.50

Calls

no outgoing calls

Tested by 5

TEST_PFunction · 0.40
TEST_FFunction · 0.40
TEST_PFunction · 0.40
TEST_FFunction · 0.40
TEST_FFunction · 0.40