/** {@inheritDoc} */ @Override public int writeUleb128(int value) { if (stretchy) { ensureCapacity(cursor + 5); // pessimistic } int cursorBefore = cursor; Leb128.writeUnsignedLeb128(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); }
/** {@inheritDoc} */ public int writeUleb128(int value) { if (stretchy) { ensureCapacity(cursor + 5); // pessimistic } int cursorBefore = cursor; Leb128Utils.writeUnsignedLeb128(this, value); return (cursor - cursorBefore); }
/** {@inheritDoc} */ public int writeSleb128(int value) { if (stretchy) { ensureCapacity(cursor + 5); // pessimistic } int cursorBefore = cursor; Leb128Utils.writeSignedLeb128(this, value); return (cursor - cursorBefore); }
/** {@inheritDoc} */ public int writeSleb128(int value) { if (stretchy) { ensureCapacity(cursor + 5); // pessimistic } int cursorBefore = cursor; Leb128Utils.writeSignedLeb128(this, value); return (cursor - cursorBefore); }
/** {@inheritDoc} */ public int writeUleb128(int value) { if (stretchy) { ensureCapacity(cursor + 5); // pessimistic } int cursorBefore = cursor; Leb128.writeUnsignedLeb128(this, value); return (cursor - cursorBefore); }
/** {@inheritDoc} */ public int writeUleb128(int value) { if (stretchy) { ensureCapacity(cursor + 5); // pessimistic } int cursorBefore = cursor; Leb128Utils.writeUnsignedLeb128(this, value); return (cursor - cursorBefore); }
/** {@inheritDoc} */ public int writeUleb128(int value) { if (stretchy) { ensureCapacity(cursor + 5); // pessimistic } int cursorBefore = cursor; Leb128.writeUnsignedLeb128(this, value); return (cursor - cursorBefore); }
/** {@inheritDoc} */ @Override public int writeUleb128(int value) { if (stretchy) { ensureCapacity(cursor + 5); // pessimistic } int cursorBefore = cursor; Leb128.writeUnsignedLeb128(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} */ 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); }
/** {@inheritDoc} */ public int writeUleb128(int value) { if (stretchy) { ensureCapacity(cursor + 5); // pessimistic } int cursorBefore = cursor; Leb128Utils.writeUnsignedLeb128(this, value); return (cursor - cursorBefore); }
/** {@inheritDoc} */ public void writeByte(int value) { int writeAt = cursor; int end = writeAt + 1; if (stretchy) { ensureCapacity(end); } else if (end > data.length) { throwBounds(); return; } data[writeAt] = (byte) value; cursor = end; }
/** {@inheritDoc} */ public int writeSleb128(int value) { if (stretchy) { ensureCapacity(cursor + 5); // pessimistic } int cursorBefore = cursor; Leb128Utils.writeSignedLeb128(this, value); return (cursor - cursorBefore); }
/** {@inheritDoc} */ public void writeByte(int value) { int writeAt = cursor; int end = writeAt + 1; if (stretchy) { ensureCapacity(end); } else if (end > data.length) { throwBounds(); return; } data[writeAt] = (byte) value; cursor = end; }
/** {@inheritDoc} */ public void writeByte(int value) { int writeAt = cursor; int end = writeAt + 1; if (stretchy) { ensureCapacity(end); } else if (end > data.length) { throwBounds(); return; } data[writeAt] = (byte) value; cursor = end; }
/** {@inheritDoc} */ public void writeByte(int value) { int writeAt = cursor; int end = writeAt + 1; if (stretchy) { ensureCapacity(end); } else if (end > data.length) { throwBounds(); return; } data[writeAt] = (byte) value; cursor = end; }
/** {@inheritDoc} */ public void writeByte(int value) { int writeAt = cursor; int end = writeAt + 1; if (stretchy) { ensureCapacity(end); } else if (end > data.length) { throwBounds(); return; } data[writeAt] = (byte) value; cursor = end; }
/** {@inheritDoc} */ public void writeByte(int value) { int writeAt = cursor; int end = writeAt + 1; if (stretchy) { ensureCapacity(end); } else if (end > data.length) { throwBounds(); return; } data[writeAt] = (byte) value; cursor = end; }