The array types are preceded by a 32-bit int indicating the number of values in the array that follows. This int is itself not preceded by a byte indicating it is an int. An array of 8 shorts with numbers 100 through 107 is therefore coded as follows:
In this illustration, the 21 bytes have been divided over two lines for readability. The serialized data may not contain such line breaks.