/** {@inheritDoc} */ @Override public int writeUleb128(int value) { if (stretchy) { ensureCapacity(cursor + 5); // pessimistic } int cursorBefore = cursor; Leb128.writeUnsignedLeb128(this, value); return (cursor - cursorBefore); }
public void writeUleb128(int i) { try { Leb128.writeUnsignedLeb128(this, i); } catch (ArrayIndexOutOfBoundsException e) { throw new DexException("Section limit " + data.limit() + " exceeded by " + name); } }
/** {@inheritDoc} */ public int writeUleb128(int value) { if (stretchy) { ensureCapacity(cursor + 5); // pessimistic } int cursorBefore = cursor; Leb128.writeUnsignedLeb128(this, value); return (cursor - cursorBefore); }
public void writeUleb128(int i) { try { Leb128.writeUnsignedLeb128(this, i); } catch (ArrayIndexOutOfBoundsException e) { throw new DexException("Section limit " + data.limit() + " exceeded by " + name); } }
/** {@inheritDoc} */ public int writeUleb128(int value) { if (stretchy) { ensureCapacity(cursor + 5); // pessimistic } int cursorBefore = cursor; Leb128.writeUnsignedLeb128(this, value); return (cursor - cursorBefore); }
public void writeUleb128(int i) { try { Leb128.writeUnsignedLeb128(this, i); } catch (ArrayIndexOutOfBoundsException e) { throw new DexException("Section limit " + data.limit() + " exceeded by " + name); } }
/** {@inheritDoc} */ @Override public int writeUleb128(int value) { if (stretchy) { ensureCapacity(cursor + 5); // pessimistic } int cursorBefore = cursor; Leb128.writeUnsignedLeb128(this, value); return (cursor - cursorBefore); }
private void transformArray(EncodedValueReader reader) { int size = reader.readArray(); Leb128.writeUnsignedLeb128(out, size); for (int i = 0; i < size; i++) { transform(reader); } }
private void transformAnnotation(EncodedValueReader reader) { int fieldCount = reader.readAnnotation(); Leb128.writeUnsignedLeb128(out, adjustType(reader.getAnnotationType())); Leb128.writeUnsignedLeb128(out, fieldCount); for (int i = 0; i < fieldCount; i++) { Leb128.writeUnsignedLeb128(out, adjustString(reader.readAnnotationName())); transform(reader); } }
private void transformArray(EncodedValueReader reader) { int size = reader.readArray(); Leb128.writeUnsignedLeb128(out, size); for (int i = 0; i < size; i++) { transform(reader); } }
private void transformAnnotation(EncodedValueReader reader) { int fieldCount = reader.readAnnotation(); Leb128.writeUnsignedLeb128(out, adjustType(reader.getAnnotationType())); Leb128.writeUnsignedLeb128(out, fieldCount); for (int i = 0; i < fieldCount; i++) { Leb128.writeUnsignedLeb128(out, adjustString(reader.readAnnotationName())); transform(reader); } }
private void transformArray(EncodedValueReader reader) { int size = reader.readArray(); Leb128.writeUnsignedLeb128(out, size); for (int i = 0; i < size; i++) { transform(reader); } }
private void transformAnnotation(EncodedValueReader reader) { int fieldCount = reader.readAnnotation(); Leb128.writeUnsignedLeb128(out, adjustType(reader.getAnnotationType())); Leb128.writeUnsignedLeb128(out, fieldCount); for (int i = 0; i < fieldCount; i++) { Leb128.writeUnsignedLeb128(out, adjustString(reader.readAnnotationName())); transform(reader); } }