Determines the maximum flag index and value based on the number of navigation flags.
This is used to validate that flag arrays are the correct length and don't contain values that are too large.
Type declaration
(data:MinimalNavigationFlagsData):MaxFlag
Parameters
data: MinimalNavigationFlagsData
The navigation flags data to analyze
Returns MaxFlag
Object containing the maximum index and flag value
Example
constdata = { navigationFlags: { flag1: {...}, flag2: {...} } }; constmaxFlag = determineMaxNavigationFlags(data); // maxFlag = { index: 0, flag: 3 } // 2 flags fit in first index
Determines the maximum flag index and value based on the number of navigation flags. This is used to validate that flag arrays are the correct length and don't contain values that are too large.