| 239 | } |
| 240 | |
| 241 | ContentLoadTask* 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 | |
| 255 | void BinaryAsset::GetChunkData(int32 index, BytesContainer& data) const |
| 256 | { |
no test coverage detected