code: public static Buffer wrap(final byte[] buffer) {
          if (buffer == null || buffer.length == 0) {
              throw new IllegalArgumentException("the buffer cannot be null or empty");
          }
  
          return new ByteBuffer(buffer);
      }
docs: Wrap the supplied byte array
  
  @param buffer
  @return