src/main/java/org/g_node/nix/internal/VectorUtils.java
/**
     * Converts {@link IntPointer} to integer array
     *
     * @param ip {@link IntPointer} pointer to be converted
     * @return array of ints
     */
Converts  IntPointer to integer array
@param ip  IntPointer pointer to be converted
@return array of ints
Converts IntPointer to integer array @param ip IntPointer pointer to be converted @return array of ints
public static int[] convertPointerToArray(IntPointer ip) {
        int[] arr = null;
        if (ip != null) {
            arr = new int[ip.capacity()];
            for (int i = 0; i < ip.capacity(); i++) {
                arr[i] = ip.get(i);
            }
        }
        return arr;
    }
public static int [ ] convertPointerToArray ( IntPointer ip ) { int [ ] arr = null ; if ( ip != null ) { arr = new int [ ip . capacity ( ) ] ; for ( int i = 0 ; i < ip . capacity ( ) ; i ++ ) { arr [ i ] = ip . get ( i ) ; } } return arr ; }
Converts {@link IntPointer} to integer array
 @param ip {@link IntPointer} pointer to be converted
 @return array of ints
Converts { @link IntPointer } to integer array @param ip { @link IntPointer } pointer to be converted @return array of ints