I have binary data in a file (a list of 32-bit integer values) that I need to get into an int array efficiently. I can't see any way to do this other than loading the data into a byte[] and then converting it into an int[] one element at a time. This is too slow for the amount of data I need to load. It takes about 3 seconds to do the conversion on an actual phone. Reading the data from the file in the byte[] is pretty much instantaneous.
Are there any libraries that use native methods for reading an int[] from a file, or for converting a byte[] to int[]?