MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / LoadChunk

Method LoadChunk

Source/Engine/Content/BinaryAsset.cpp:272–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272bool BinaryAsset::LoadChunk(int32 chunkIndex) const
273{
274 ASSERT(Storage);
275 const auto chunk = _header.Chunks[chunkIndex];
276 if (chunk != nullptr
277 && chunk->IsMissing()
278 && chunk->ExistsInFile())
279 {
280 if (Storage->LoadAssetChunk(chunk))
281 return true;
282 }
283 return false;
284}
285
286bool BinaryAsset::LoadChunks(AssetChunksFlag chunks) const
287{

Callers 6

GetMipDataWithLoadingMethod · 0.80
DownloadDataCPUMethod · 0.80
ExportModelMethod · 0.80
ExportTextureMethod · 0.80

Calls 2

IsMissingMethod · 0.80
LoadAssetChunkMethod · 0.80

Tested by

no test coverage detected