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

Method write_temporary

src/resource/compile_options.cpp:141–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141void CompileOptions::write_temporary(const char *path, const char *data, u32 size)
142{
143 File *file = _output_filesystem.open(path, FileOpenMode::WRITE);
144 if (file->is_open())
145 file->write(data, size);
146 _output_filesystem.close(*file);
147}
148
149void CompileOptions::write_temporary(const char *path, const Buffer &data)
150{

Callers 1

compile_bgfx_shaderMethod · 0.80

Calls 6

beginFunction · 0.50
sizeFunction · 0.50
openMethod · 0.45
is_openMethod · 0.45
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected