/** {@inheritDoc} */ public int writeSleb128(int value) { if (stretchy) { ensureCapacity(cursor + 5); // pessimistic } int cursorBefore = cursor; Leb128.writeSignedLeb128(this, value); return (cursor - cursorBefore); }
public void writeSleb128(int i) { try { Leb128.writeSignedLeb128(this, i); } catch (ArrayIndexOutOfBoundsException e) { throw new DexException("Section limit " + data.limit() + " exceeded by " + name); } }
/** {@inheritDoc} */ @Override public int writeSleb128(int value) { if (stretchy) { ensureCapacity(cursor + 5); // pessimistic } int cursorBefore = cursor; Leb128.writeSignedLeb128(this, value); return (cursor - cursorBefore); }
/** {@inheritDoc} */ public int writeSleb128(int value) { if (stretchy) { ensureCapacity(cursor + 5); // pessimistic } int cursorBefore = cursor; Leb128.writeSignedLeb128(this, value); return (cursor - cursorBefore); }
/** {@inheritDoc} */ @Override public int writeSleb128(int value) { if (stretchy) { ensureCapacity(cursor + 5); // pessimistic } int cursorBefore = cursor; Leb128.writeSignedLeb128(this, value); return (cursor - cursorBefore); }
public void writeSleb128(int i) { try { Leb128.writeSignedLeb128(this, i); } catch (ArrayIndexOutOfBoundsException e) { throw new DexException("Section limit " + data.limit() + " exceeded by " + name); } }