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

Method open_temporary

src/core/filesystem/filesystem_disk.cpp:261–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261File *FilesystemDisk::open_temporary(DynamicString &absolute_path)
262{
263 TempAllocator256 ta;
264 DynamicString tmp_basename(ta);
265 tmp_basename.from_guid(guid::new_guid());
266 tmp_basename += ".tmp";
267 this->absolute_path(absolute_path, tmp_basename.c_str());
268
269 FileDisk *file = CE_NEW(*_allocator, FileDisk)();
270 file->open(absolute_path.c_str(), FileOpenMode::WRITE);
271 return file;
272}
273
274void FilesystemDisk::close(File &file)
275{

Callers 6

write_data_indexFunction · 0.80
write_data_versionsFunction · 0.80
write_data_mtimesFunction · 0.80
write_data_dependenciesFunction · 0.80
compile_internalMethod · 0.80
write_requestMethod · 0.80

Calls 5

absolute_pathMethod · 0.95
new_guidFunction · 0.85
from_guidMethod · 0.80
c_strMethod · 0.45
openMethod · 0.45

Tested by

no test coverage detected