MCPcopy Create free account
hub / github.com/crownengine/crown / read_data_index

Function read_data_index

src/resource/data_compiler.cpp:325–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325static void read_data_index(HashMap<StringId64, DynamicString> &index
326 , FilesystemDisk &data_fs
327 , const SourceIndex &sources
328 , const char *filename
329 )
330{
331 Buffer json(default_allocator());
332 File *file = data_fs.open(filename, FileOpenMode::READ);
333 if (file->is_open())
334 file->read_all(json);
335 data_fs.close(*file);
336
337 parse_data_index(index, sources, json);
338}
339
340static void parse_data_mtimes(HashMap<StringId64, u64> &mtimes
341 , const HashMap<StringId64, DynamicString> &data_index

Callers 1

scan_and_restoreMethod · 0.85

Calls 5

parse_data_indexFunction · 0.85
read_allMethod · 0.80
openMethod · 0.45
is_openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected