code: public void encode(ByteBuf out, CharSequence data) {
          ObjectUtil.checkNotNull(out, "out");
          if (data instanceof AsciiString) {
              AsciiString string = (AsciiString) data;
              try {
                  encodeProcessor.out = out;
                  string.forEachByte(encodeProcessor);
              } catch (Exception e) {
                  PlatformDependent.throwException(e);
              } finally {
                  encodeProcessor.end();
              }
          } else {
              encodeSlowPath(out, data);
          }
      }
docs: Compresses the input string literal using the Huffman coding.
  
  @param out the output stream for the compressed data
  @param data the string literal to be Huffman encoded