getMaxUpgradeMessageSizeExponent static method

int getMaxUpgradeMessageSizeExponent(
  1. Uint8List message
)

gets the max upgrade message size exponent of the given message

Implementation

static int getMaxUpgradeMessageSizeExponent(Uint8List message) {
  return ((message[1] & 0xFF) >> 4) + 25;
}