diff options
author | Brian Carlstrom <bdc@google.com> | 2013-04-30 21:53:28 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2013-04-30 21:53:28 +0000 |
commit | c8bc5f77ee2a996e771fb1814a47cc5c8bf93d5e (patch) | |
tree | ea223ce1662a8a0e0e08ce701f93760037e18003 /dex/src | |
parent | 619c4ad482132e16c9849cf5ff3216f5166d4ee9 (diff) | |
parent | dc5a528c10462726682b8f490772e0677b038c1f (diff) | |
download | libcore-c8bc5f77ee2a996e771fb1814a47cc5c8bf93d5e.zip libcore-c8bc5f77ee2a996e771fb1814a47cc5c8bf93d5e.tar.gz libcore-c8bc5f77ee2a996e771fb1814a47cc5c8bf93d5e.tar.bz2 |
Merge "*libcore* resolved conflicts for merge of bc23c4f3 to dalvik-dev"
Diffstat (limited to 'dex/src')
-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]; |