BaseDexBuffer { public int readUbyte(int offset) { return buf[offset + baseOffset] & 0xff; } BaseDexBuffer(@Nonnull byte[] buf);  BaseDexBuffer(@Nonnull byte[] buf, int offset); int readSmallUint(int offset); int readOptionalUint(int offset); int readUshort(int offset); int readUbyte(int offset); long readLong(int offset); int readLongAsSmallUint(int offset); int readInt(int offset); int readShort(int offset); int readByte(int offset); @Nonnull BaseDexReader readerAt(int offset);  }
@Test public void testReadUbyte() { byte[] buf = new byte[1]; BaseDexBuffer dexBuf = new BaseDexBuffer(buf); for (int i=0; i<=0xff; i++) { buf[0] = (byte)i; Assert.assertEquals(i, dexBuf.readUbyte(0)); } }