fun toShortArray(array: Array<Short>): ShortArray? { val result = ShortArray(array.size) for (i in array.indices) { result[i] = array[i] } return result }
Coverts given shorts array to array of shorts .