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

Method RequestChunkDataAsync

Source/Engine/Content/BinaryAsset.cpp:241–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241ContentLoadTask* BinaryAsset::RequestChunkDataAsync(int32 index)
242{
243 auto chunk = GetChunk(index);
244 if (chunk != nullptr && chunk->IsLoaded())
245 {
246 // Data already here
247 chunk->RegisterUsage();
248 return nullptr;
249 }
250
251 // Spawn loading task
252 return New<LoadAssetDataTask>(this, GET_CHUNK_FLAG(index));
253}
254
255void BinaryAsset::GetChunkData(int32 index, BytesContainer& data) const
256{

Callers 1

RequestMipDataAsyncMethod · 0.80

Calls 3

GetChunkFunction · 0.85
RegisterUsageMethod · 0.80
IsLoadedMethod · 0.45

Tested by

no test coverage detected