FlagBitsToBitArray Function

Converts a flag bit string to a bit array.

int FlagBitsToBitArray(int bits, bool[] array, int maxSize)

Parameters

int bits

Bit string containing the flags.

bool[] array

Array to write the flags to. Enabled flags will be 'true'.

int maxSize

Maximum number of flags the array can store.

Return Value

Number of flags written.