public int readArray() {
    checkType(ENCODED_ARRAY);
    type = MUST_READ;
    return Leb128.readUnsignedLeb128(in);
  }
Begins reading the elements of an array, returning the array's size. The caller must follow up
by calling a read method for each element in the array. For example, this reads a byte array:

<pre>{@code
int arraySize = readArray();
for (int i = 0, i < arraySize; i++) {
  readByte();
}
}</pre>
android/android_framework/dex-maker/src/main/java/com/android/dex/EncodedValueReader.java