public static int getMaxInlineStringKey(int longCount, boolean byteEncoded) {
    return (longCount * (byteEncoded ? 8 : 4)) - 1;
  }
Given the number of longs used to encode the inline string return the maximum number of
characters that can be encoded into that many longs.
geode-core/src/main/java/org/apache/geode/internal/cache/InlineKeyHelper.java