private void checkType(int expected) {
    if (peek() != expected) {
      throw new IllegalStateException(String.format("Expected %x but was %x", expected, peek()));
    }
  }
Skips a single value, including its nested values if it is an array or annotation.
android/android_framework/dex-maker/src/main/java/com/android/dex/EncodedValueReader.java