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

Method GetChunkData

Source/Engine/Content/BinaryAsset.cpp:255–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255void BinaryAsset::GetChunkData(int32 index, BytesContainer& data) const
256{
257 //ScopeLock lock(Locker);
258
259 // Check if has data missing
260 if (!HasChunkLoaded(index))
261 {
262 // Missing data
263 data.Release();
264 return;
265 }
266
267 // Get data
268 auto chunk = GetChunk(index);
269 data.Link(chunk->Data);
270}
271
272bool BinaryAsset::LoadChunk(int32 chunkIndex) const
273{

Callers 3

GetMipDataMethod · 0.80
GetMipDataWithLoadingMethod · 0.80

Calls 4

HasChunkLoadedFunction · 0.85
GetChunkFunction · 0.85
ReleaseMethod · 0.45
LinkMethod · 0.45

Tested by

no test coverage detected