Java Number Unpack unpackInts(long... longs)

Here you can find the source of unpackInts(long... longs)

Description

unpack Ints

License

Apache License

Declaration

public static int[] unpackInts(long... longs) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static int[] unpackInts(long... longs) {
        int len = 2 * longs.length;
        int result[] = new int[len];
        int i = 0;
        for (long l : longs) {
            result[i++] = (int) (l & 0xffffffffL);
            result[i++] = (int) (l >> 32);
        }/*from   w  w  w.  ja va2 s.c o m*/
        return result;
    }
}

Related

  1. unpack64(long num)
  2. unpackDigital(int packed)
  3. unpackInt(final int argb, final int type)
  4. unpackInt(int packedInt, int numBits, int numShiftedLeft)
  5. unpackInt(long theLong, boolean isFirst)
  6. unpackKmer(final long value)
  7. unpackLong(long a, int bits)