Java Utililty Methods Short Array Convert To

List of utility methods to do Short Array Convert To

Description

The list of methods to do Short Array Convert To are organized into topic(s).

Method

int[]copySignedShortToIntArray(short[] src)

Copy an array of signed values in short, into an array of int.

Sign extension is performed.

if (src == null)
    return null;
int n = src.length;
int[] dst = new int[n];
for (int j = 0; j < n; ++j) {
    dst[j] = src[j]; 
return dst;
...