code: public static ByteBuf wrappedBuffer(byte[] array) {
          if (array.length == 0) {
              return EMPTY_BUFFER;
          }
          return new UnpooledHeapByteBuf(ALLOC, array, array.length);
      }
docs: Creates a new big-endian buffer which wraps the specified {@code array}.
  A modification on the specified array's content will be visible to the
  returned buffer.