MCPcopy Create free account
hub / github.com/assimp/assimp / Open

Method Open

code/Common/ZipArchiveIOSystem.cpp:559–570  ·  view source on GitHub ↗

---------------------------------------------------------------- Only supports Reading

Source from the content-addressed store, hash-verified

557// ----------------------------------------------------------------
558// Only supports Reading
559IOStream *ZipArchiveIOSystem::Open(const char *pFilename, const char *pMode) {
560 ai_assert(pFilename != nullptr);
561
562 for (size_t i = 0; pMode[i] != 0; ++i) {
563 ai_assert(pMode[i] != 'w');
564 if (pMode[i] == 'w')
565 return nullptr;
566 }
567
568 std::string filename(pFilename);
569 return pImpl->OpenFile(filename);
570}
571
572// ----------------------------------------------------------------
573void ZipArchiveIOSystem::Close(IOStream *pFile) {

Callers 1

openMethod · 0.45

Calls 1

OpenFileMethod · 0.80

Tested by

no test coverage detected