MCPcopy Create free account
hub / github.com/ZDoom/Raze / ShrinkToFit

Method ShrinkToFit

source/common/utility/tarray.h:712–730  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

710 }
711
712 void ShrinkToFit ()
713 {
714 if (Most > Count)
715 {
716 Most = Count;
717 if (Most == 0)
718 {
719 if (Array != NULL)
720 {
721 M_Free (Array);
722 Array = NULL;
723 }
724 }
725 else
726 {
727 DoResize ();
728 }
729 }
730 }
731 // Grow Array to be large enough to hold amount more entries without
732 // further growing.
733 void Grow (unsigned int amount)

Callers 15

loadconsFunction · 0.80
CompilePropertiesMethod · 0.80
InitThingdefFunction · 0.80
ConstructSectionsFunction · 0.80
OpenALSoundRendererMethod · 0.80
HashSoundsMethod · 0.80
FMaterialMethod · 0.80
ParseOneScriptFunction · 0.80
BuildMethod · 0.80
EmitMethod · 0.80
ArrayShrinkToFitFunction · 0.80

Calls 1

M_FreeFunction · 0.85

Tested by

no test coverage detected