int[] loadIntArray() throws IOException {
  int n=loadInt();
  if (n == 0)   return NOINTS;
  int m=n << 2;
  if (buf.length < m)   buf=new byte[m];
  is.readFully(buf,0,m);
  int[] array=new int[n];
  for (int i=0, j=0; i < n; ++i, j+=4)   array[i]=luacLittleEndian ? (buf[j + 3] << 24) | ((0xff & buf[j + 2]) << 16) | ((0xff & buf[j + 1]) << 8)| (0xff & buf[j + 0]) : (buf[j + 0] << 24) | ((0xff & buf[j + 1]) << 16) | ((0xff & buf[j + 2]) << 8)| (0xff & buf[j + 3]);
  return array;
}

int [ ] loadIntArray ( ) throws IOException { int n = loadInt ( ) ; if ( n == 0 ) return NOINTS ; int m = n << 2 ; if ( buf . length < m ) buf = new byte [ m ] ; is . readFully ( buf , 0 , m ) ; int [ ] array = new int [ n ] ; for ( int i = 0 , j = 0 ; i < n ; ++ i , j += 4 ) array [ i ] = luacLittleEndian ? ( buf [ j + 3 ] << 24 ) | ( ( 0xff & buf [ j + 2 ] ) << 16 ) | ( ( 0xff & buf [ j + 1 ] ) << 8 ) | ( 0xff & buf [ j + 0 ] ) : ( buf [ j + 0 ] << 24 ) | ( ( 0xff & buf [ j + 1 ] ) << 16 ) | ( ( 0xff & buf [ j + 2 ] ) << 8 ) | ( 0xff & buf [ j + 3 ] ) ; return array ; }
load an array of int values from the input stream
