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

Method open

src/core/filesystem/filesystem_disk.cpp:248–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248File *FilesystemDisk::open(const char *path, FileOpenMode::Enum mode)
249{
250 CE_ENSURE(NULL != path);
251
252 TempAllocator256 ta;
253 DynamicString abs_path(ta);
254 absolute_path(abs_path, path);
255
256 FileDisk *file = CE_NEW(*_allocator, FileDisk)();
257 file->open(abs_path.c_str(), mode);
258 return file;
259}
260
261File *FilesystemDisk::open_temporary(DynamicString &absolute_path)
262{

Callers 1

open_temporaryMethod · 0.45

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected