code: public static boolean[] longToBinary(final long src, final int srcPos, final boolean[] dst, final int dstPos,
              final int nBools) {
          if (0 == nBools) {
              return dst;
          }
          if (nBools - 1 + srcPos >= 64) {
              throw new IllegalArgumentException("nBools-1+srcPos is greater or equal to than 64");
          }
          for (int i = 0; i < nBools; i++) {
              final int shift = i + srcPos;
              dst[dstPos + i] = (0x1 & (src >> shift)) != 0;
          }
          return dst;
      }
docs: <p>
  Converts a long into an array of boolean using the default (little endian, Lsb0) byte and
  bit ordering.
  </p>
  
  @param src the long to convert
  @param srcPos the position in {@code src}, in bits, from where to start the conversion
  @param dst the destination array
  @param dstPos the position in {@code dst} where to copy the result
  @param nBools the number of booleans to copy to {@code dst}, must be smaller or equal to
  the width of the input (from srcPos to msb)
  @return {@code dst}
  @throws NullPointerException if {@code dst} is {@code null}
  @throws IllegalArgumentException if {@code nBools-1+srcPos >= 64}
  @throws ArrayIndexOutOfBoundsException if {@code dstPos + nBools > dst.length}