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

Method read_temporary

src/resource/compile_options.cpp:131–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131Buffer CompileOptions::read_temporary(const char *path)
132{
133 Buffer buf(default_allocator());
134 File *file = _output_filesystem.open(path, FileOpenMode::READ);
135 if (file->is_open())
136 file->read_all(buf);
137 _output_filesystem.close(*file);
138 return buf;
139}
140
141void CompileOptions::write_temporary(const char *path, const char *data, u32 size)
142{

Callers 3

compileFunction · 0.80
compile_bgfx_shaderMethod · 0.80
compileFunction · 0.80

Calls 4

read_allMethod · 0.80
openMethod · 0.45
is_openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected