Parses a bitmask value into a set of source types.
Converts a set of source types into a bitmask value.