diff options
author | Yohann Roussel <yroussel@google.com> | 2013-08-05 17:30:58 +0200 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2013-08-28 16:36:20 -0700 |
commit | 661f3c9ae4049cfa493fabaf129516e94f2388de (patch) | |
tree | 75c3160722429dd61263f8738ce9229a01bc88a2 /dex/src/main/java | |
parent | 0d3a5adf6ee9664b076eee1eabe0be505cdb9792 (diff) | |
download | libcore-661f3c9ae4049cfa493fabaf129516e94f2388de.zip libcore-661f3c9ae4049cfa493fabaf129516e94f2388de.tar.gz libcore-661f3c9ae4049cfa493fabaf129516e94f2388de.tar.bz2 |
Add member and type idx max values to DexFormat.
(cherry picked from commit 4a82103cb62ef49ff597a1081334c738150b1af2)
Change-Id: I6bbd2bdecd907918976eb0d8f5e19f899fb84f1b
Diffstat (limited to 'dex/src/main/java')
-rw-r--r-- | dex/src/main/java/com/android/dex/DexFormat.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/dex/src/main/java/com/android/dex/DexFormat.java b/dex/src/main/java/com/android/dex/DexFormat.java index 85941fd..9319bc2 100644 --- a/dex/src/main/java/com/android/dex/DexFormat.java +++ b/dex/src/main/java/com/android/dex/DexFormat.java @@ -56,6 +56,19 @@ public final class DexFormat { public static final int ENDIAN_TAG = 0x12345678; /** + * Maximum addressable field or method index. + * The largest addressable member is 0xffff, in the "instruction formats" spec as field@CCCC or + * meth@CCCC. + */ + public static final int MAX_MEMBER_IDX = 0xFFFF; + + /** + * Maximum addressable type index. + * The largest addressable type is 0xffff, in the "instruction formats" spec as type@CCCC. + */ + public static final int MAX_TYPE_IDX = 0xFFFF; + + /** * Returns the API level corresponding to the given magic number, * or {@code -1} if the given array is not a well-formed dex file * magic number. |