public String getString() {
    if (part == null) {
      return null;
    }
    if (!isBytes()) {
      Assert.assertTrue(false, "expected String part to be of type BYTE, part =" + this);
    }
    return CacheServerHelper.fromUTF((byte[]) part);
  }
Return the length of the part. The length is the number of bytes needed for its serialized
form.
geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/Part.java