MCPcopy Create free account
hub / github.com/CesiumGS/cesium-native / loadJson

Method loadJson

Cesium3DTilesReader/src/SubtreeFileReader.cpp:222–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222CesiumAsync::Future<ReadJsonResult<Subtree>> SubtreeFileReader::loadJson(
223 const CesiumAsync::AsyncSystem& asyncSystem,
224 const std::shared_ptr<IAssetAccessor>& pAssetAccessor,
225 const std::string& url,
226 const std::vector<CesiumAsync::IAssetAccessor::THeader>& requestHeaders,
227 const std::span<const std::byte>& data) const noexcept {
228 ReadJsonResult<Subtree> result = this->_reader.readFromJson(data);
229 return postprocess(
230 asyncSystem,
231 pAssetAccessor,
232 url,
233 requestHeaders,
234 std::move(result));
235}
236
237namespace {
238

Callers 1

loadMethod · 0.95

Calls 2

postprocessFunction · 0.85
readFromJsonMethod · 0.45

Tested by

no test coverage detected