byte (CaseSensitivity sensitivity, byte flags) { int sensitivity_flags = sensitivity == CaseSensitivity.UNKNOWN ? 0 : sensitivity == CaseSensitivity.SENSITIVE ? 1 : 2; flags |= sensitivity_flags << CASE_SENSITIVITY_SHIFT; return flags; }