public static List < Integer > intArrayFromBytes ( byte [ ] bytes ) { ImmutableList . Builder < Integer > list = ImmutableList . builder ( ) ; ByteBuffer buffer = ByteBuffer . wrap ( bytes ) ; while ( buffer . hasRemaining ( ) ) { list . add ( buffer . getInt ( ) ) ; } return list . build ( ) ; }
Unpack an array of big endian ints .