MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / open

Method open

Source/3rdParty/bx/src/file.cpp:583–598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581 }
582
583 virtual bool open(const FilePath& _filePath, Error* _err) override
584 {
585 BX_ASSERT(NULL != _err, "Reader/Writer interface calling functions must handle errors.");
586
587 m_dir = opendir(_filePath.getCPtr() );
588
589 if (NULL == m_dir)
590 {
591 BX_ERROR_SET(_err, kErrorReaderWriterOpen, "DirectoryReader: Failed to open directory.");
592 return false;
593 }
594
595 m_pos = 0;
596
597 return true;
598 }
599
600 virtual void close() override
601 {

Callers

nothing calls this directly

Calls 2

getCPtrMethod · 0.80
opendirFunction · 0.70

Tested by

no test coverage detected