| 884 | #endif |
| 885 | |
| 886 | FlaxChunk* FlaxStorage::AllocateChunk() |
| 887 | { |
| 888 | if (!IsReadOnly()) |
| 889 | { |
| 890 | PROFILE_MEM(ContentFiles); |
| 891 | auto chunk = New<FlaxChunk>(); |
| 892 | _chunks.Add(chunk); |
| 893 | return chunk; |
| 894 | } |
| 895 | |
| 896 | LOG(Warning, "Cannot allocate chunk in {0}", ToString()); |
| 897 | return nullptr; |
| 898 | } |
| 899 | |
| 900 | #if USE_EDITOR |
| 901 |
no test coverage detected