code: public static ByteBuf wrappedBuffer(int maxNumComponents, ByteBuf... buffers) {
          switch (buffers.length) {
          case 0:
              break;
          case 1:
              ByteBuf buffer = buffers[0];
              if (buffer.isReadable()) {
                  return wrappedBuffer(buffer.order(BIG_ENDIAN));
              } else {
                  buffer.release();
              }
              break;
          default:
              for (int i = 0; i < buffers.length; i++) {
                  ByteBuf buf = buffers[i];
                  if (buf.isReadable()) {
                      return new CompositeByteBuf(ALLOC, false, maxNumComponents, buffers, i);
                  }
                  buf.release();
              }
              break;
          }
          return EMPTY_BUFFER;
      }
docs: Creates a new big-endian composite buffer which wraps the readable bytes of the
  specified buffers without copying them.  A modification on the content
  of the specified buffers will be visible to the returned buffer.
  @param maxNumComponents Advisement as to how many independent buffers are allowed to exist before
  consolidation occurs.
  @param buffers The buffers to wrap. Reference count ownership of all variables is transferred to this method.
  @return The readable portion of the {@code buffers}. The caller is responsible for releasing this buffer.