From dc5a528c10462726682b8f490772e0677b038c1f Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 7 Jun 2012 18:17:11 -0700 Subject: *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) --- dex/src/main/java/com/android/dex/Dex.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'dex/src') 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]; -- cgit v1.1