code: public LongBuffer toLongBuffer() {
      LongBuffer lb = LongBuffer.allocate(bitmap.length);
      lb.put(bitmap);
      return lb;
    }
docs: Return the content of this container as a LongBuffer. This creates a copy and might be
  relatively slow.
  
  @return the LongBuffer