UShortArray extends Array<USHORT> implements ValueType<int[]> { @Override public int[] get() { int[] result = new int[array.length]; for (int i = 0; i < result.length; i++) { result[i] = get(i).intValue(); } return result; } UShortArray(int length);  UShortArray(int[] array);  UShortArray(final Pointer p, final int length); void set(UShortArray values); @Override void set(int[] value); @Override int[] get();  }
@Test public final void testEmptyArray() { UShortArray array = new UShortArray(Pointer.NULL, 0); System.out.println(array); assertArrayEquals(new int[0], array.get()); }