MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / read

Method read

source/base/StarAssets.cpp:954–958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

952}
953
954ByteArray Assets::read(String const& path) const {
955 if (auto p = m_files.ptr(path))
956 return p->source->read(p->sourceName);
957 throw AssetException(strf("No such asset '{}'", path));
958}
959
960ImageConstPtr Assets::readImage(String const& path) const {
961 if (auto p = m_files.ptr(path)) {

Callers 3

AssetsMethod · 0.45
readImageMethod · 0.45
readJsonMethod · 0.45

Calls 2

strfFunction · 0.85
ptrMethod · 0.45

Tested by

no test coverage detected