/** * Reads a string index. String indicies are offset by 1, and a 0 value * in the stream (-1 as returned by this method) means "null" * * @param bs * @return index into file's string ids table, -1 means null * @throws IOException */ private int readStringIndex(InputStream bs) throws IOException { int offsetIndex = readUnsignedLeb128(bs); return offsetIndex - 1; }
private void decode0() throws IOException { ByteArrayInputStream bs = new ByteArrayInputStream(encoded); line = readUnsignedLeb128(bs); int szParams = readUnsignedLeb128(bs); StdTypeList params = desc.getParameterTypes(); int curReg = getParamBase(); int reg = readUnsignedLeb128(bs); int nameIdx = readStringIndex(bs); int typeIdx = readStringIndex(bs); int reg = readUnsignedLeb128(bs); int nameIdx = readStringIndex(bs); int typeIdx = readStringIndex(bs); int reg = readUnsignedLeb128(bs); LocalEntry prevle; LocalEntry le; int reg = readUnsignedLeb128(bs); LocalEntry prevle; LocalEntry le; address += readUnsignedLeb128(bs); break;