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

Method AllocateChunk

Source/Engine/Content/Storage/FlaxStorage.cpp:886–898  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

884#endif
885
886FlaxChunk* 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

Callers 7

GetOrCreateChunkMethod · 0.45
Upgrade_4_To_5Method · 0.45
Upgrade_5_To_30Method · 0.45
Upgrade_25_To_30Method · 0.45
CopyChunkFunction · 0.45
createMethod · 0.45

Calls 2

ToStringFunction · 0.50
AddMethod · 0.45

Tested by

no test coverage detected