Google celebrates Hispanic Heritage Month. See how.

strictnessToFlags function

int strictnessToFlags (CallStrictness strictness)

Convert CallStrictness to a byte that can be inserted into the dynamic flags portion of a message.

Implementation

int strictnessToFlags(CallStrictness strictness) {
  switch (strictness) {
    case CallStrictness.strict:
      return 0x00;
    case CallStrictness.flexible:
      return _kDynamicFlagsFlexible;
  }
}