code: public static int size(AsciiString str) {
          return str == null? Global.SHORT_SIZE : Global.SHORT_SIZE + str.length();
      }
docs: Measures the number of bytes required to encode an AsciiSring.
  @param str the string
  @return the number of bytes required for encoding str