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

Method open_stream

src/resource/resource_loader.cpp:65–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65File *ResourceLoader::open_stream(StringId64 type, StringId64 name)
66{
67 TempAllocator256 ta;
68 DynamicString stream_dest(ta);
69 stream_destination_path(stream_dest, resource_id(type, name));
70 return _data_filesystem.open(stream_dest.c_str(), FileOpenMode::READ);
71}
72
73void ResourceLoader::close_stream(File *stream)
74{

Callers 2

createMethod · 0.45
reload_soundsMethod · 0.45

Calls 4

stream_destination_pathFunction · 0.85
resource_idFunction · 0.85
openMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected