public static Boolean canStringBeInlineEncoded(String skey) {
    if (skey.length() > getMaxInlineStringKey(MAX_LONGS_USED_FOR_STRING_KEY, true)) {
      return null;
    }
    if (isByteEncodingOk(skey)) {
      return Boolean.TRUE;
    } else {
      if (skey.length() > getMaxInlineStringKey(MAX_LONGS_USED_FOR_STRING_KEY, false)) {
        return null;
      } else {
        return Boolean.FALSE;
      }
    }
  }
Return null if the given string can not be encoded inline. Return true if the given string can
be encoded inline as bytes. Return false if the given string can be encoded inline as chars.
geode-core/src/main/java/org/apache/geode/internal/cache/InlineKeyHelper.java