public int[] readToIntArray() throws IOException { // allocate memory for array elements int elements = size / sizeOf(); int[] ai = new int[elements]; MatFileInputStream mfis = new MatFileInputStream(buf, type); for (int i = 0; i < elements; i++) { ai[i] = mfis.readInt(); } // skip padding if (padding > 0) { buf.position(buf.position() + padding); } return ai; }
continue; case INTEGER: dest.putInt( readInt() ); continue; case LONG: