MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / CASCStream

Method CASCStream

src/Abyss/FileSystem/CASC.cpp:33–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31};
32
33CASCStream::CASCStream(HANDLE storage, const std::string& fileName) {
34 if (!CascOpenFile(storage, fileName.c_str(), 0, CASC_OPEN_BY_NAME, &_file)) {
35 throw std::runtime_error(absl::StrCat("Failed to open file '", fileName, "' from CASC"));
36 }
37}
38
39CASCStream::~CASCStream() { CascCloseFile(_file); }
40

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected