diff options
author | Elliott Hughes <enh@google.com> | 2012-06-07 18:17:11 -0700 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2013-04-30 14:52:21 -0700 |
commit | dc5a528c10462726682b8f490772e0677b038c1f (patch) | |
tree | ea223ce1662a8a0e0e08ce701f93760037e18003 /dex/src/main | |
parent | 0436f436f122e7e74285faf32b8db2259f56ded7 (diff) | |
download | libcore-dc5a528c10462726682b8f490772e0677b038c1f.zip libcore-dc5a528c10462726682b8f490772e0677b038c1f.tar.gz libcore-dc5a528c10462726682b8f490772e0677b038c1f.tar.bz2 |
*libcore* resolved conflicts for merge of bc23c4f3 to dalvik-dev
DexBuffer became Dex, and moved to libcore.
Change-Id: I32447f83c03dd18f2339e879d015134be9f4fc18
(cherry picked from commit 621d004d61b3eaca74fc045a3fba6afa14327a2e)
Diffstat (limited to 'dex/src/main')
-rw-r--r-- | dex/src/main/java/com/android/dex/Dex.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dex/src/main/java/com/android/dex/Dex.java b/dex/src/main/java/com/android/dex/Dex.java index b1ddc0a..e6bee68 100644 --- a/dex/src/main/java/com/android/dex/Dex.java +++ b/dex/src/main/java/com/android/dex/Dex.java @@ -458,10 +458,18 @@ public final class Dex { return Leb128.readUnsignedLeb128(this); } + public int readUleb128p1() { + return Leb128.readUnsignedLeb128(this) - 1; + } + public int readSleb128() { return Leb128.readSignedLeb128(this); } + public void writeUleb128p1(int i) { + writeUleb128(i + 1); + } + public TypeList readTypeList() { int size = readInt(); short[] types = new short[size]; |