code: @SuppressWarnings("unused")
      private static final void dump(IoBuffer data) {
          log.debug("Hex: {}", data.getHexDump());
          int pos = data.position();
          byte[] bar = new byte[data.limit() - data.position()];
          data.get(bar);
          log.debug("Str {}", new String(bar));
          bar = null;
          data.position(pos);
      }
docs: Used for debugging byte stream.
  
  @param data
  IoBuffer