Num and Max when Debugging

Hello, what are the “Num” and “Max” values that appear when debugging in Rider?

E.g.

 

 

0
1 comment

Hello Sam,

Thank you for your question.

Talking about the "Words", Num=20 is the current number of valid elements stored; Max=22 is the allocated capacity (number of slots) currently reserved in memory, which can be greater than or equal to Num. It’s the amount the container can hold before a reallocation/growth is needed.

Similarly for the Words collection elements: Every element seems to store TTuple<int, FStringArray> where FStringArray is an array of FString. So the Strings=Num=9395, Max=10962 means the array currently holds 9395 valid elements and 10962 is the allocated capacity.

Hope that helps. If still anything is still unclear, please share the “Words” declaration with me.

Have a nice day!

0

Please sign in to leave a comment.