| 253 | } |
| 254 | |
| 255 | void 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 | |
| 272 | bool BinaryAsset::LoadChunk(int32 chunkIndex) const |
| 273 | { |
no test coverage detected