All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.core.QByteArray Maven / Gradle / Ivy

There is a newer version: 6.8.1
Show newest version
package io.qt.core;


/**
 * 

Array of bytes

*

Java wrapper for Qt class QByteArray

*/ public class QByteArray extends io.qt.QtObject implements java.lang.Comparable, java.lang.Iterable, java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

Java wrapper for Qt enum QByteArray::Base64DecodingStatus

*/ public enum Base64DecodingStatus implements io.qt.QtEnumerator { Ok(0), IllegalInputLength(1), IllegalCharacter(2), IllegalPadding(3); private Base64DecodingStatus(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static Base64DecodingStatus resolve(int value) { switch (value) { case 0: return Ok; case 1: return IllegalInputLength; case 2: return IllegalCharacter; case 3: return IllegalPadding; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QByteArray::Base64Option

* * @see Base64Options */ @io.qt.QtRejectedEntries({"KeepTrailingEquals", "IgnoreBase64DecodingErrors"}) public enum Base64Option implements io.qt.QtFlagEnumerator { Base64Encoding(0), Base64UrlEncoding(1), KeepTrailingEquals(0), OmitTrailingEquals(2), IgnoreBase64DecodingErrors(0), AbortOnBase64DecodingErrors(4); private Base64Option(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Create a QFlags of the enum entry. * @return QFlags */ public Base64Options asFlags() { return new Base64Options(value); } /** * Combines this entry with other enum entry. * @param e enum entry * @return new flag */ public Base64Options combined(Base64Option e) { return new Base64Options(this, e); } /** * Creates a new {@link Base64Options} from the entries. * @param values entries * @return new flag */ public static Base64Options flags(Base64Option ... values) { return new Base64Options(values); } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static Base64Option resolve(int value) { switch (value) { case 0: return Base64Encoding; case 1: return Base64UrlEncoding; case 2: return OmitTrailingEquals; case 4: return AbortOnBase64DecodingErrors; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** * QFlags type for enum {@link Base64Option} */ public static final class Base64Options extends io.qt.QFlags implements Comparable { private static final long serialVersionUID = 0xc576784bf17a958cL; /** * Creates a new Base64Options where the flags in args are set. * @param args enum entries */ public Base64Options(Base64Option ... args){ super(args); } /** * Creates a new Base64Options with given value. * @param value */ public Base64Options(int value) { super(value); } /** * Combines this flags with enum entry. * @param e enum entry * @return new Base64Options */ @Override public final Base64Options combined(Base64Option e){ return new Base64Options(value() | e.value()); } /** * Sets the flag e * @param e enum entry * @return this */ public final Base64Options setFlag(Base64Option e){ super.setFlag(e); return this; } /** * Sets or clears the flag flag * @param e enum entry * @param on set (true) or clear (false) * @return this */ public final Base64Options setFlag(Base64Option e, boolean on){ super.setFlag(e, on); return this; } /** * Returns an array of flag objects represented by this Base64Options. * @return array of enum entries */ @Override public final Base64Option[] flags(){ return super.flags(Base64Option.values()); } /** * {@inheritDoc} */ @Override public final Base64Options clone(){ return new Base64Options(value()); } /** * {@inheritDoc} */ @Override public final int compareTo(Base64Options other){ return Integer.compare(value(), other.value()); } } /** *

See QByteArray::QByteArray()

*/ public QByteArray(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QByteArray instance); /** *

See QByteArray::QByteArray(QByteArray)

*/ public QByteArray(io.qt.core.QByteArray arg__1){ super((QPrivateConstructor)null); initialize_native(this, arg__1); } private native static void initialize_native(QByteArray instance, io.qt.core.QByteArray arg__1); /** *

Overloaded constructor for {@link #QByteArray(java.nio.Buffer, long)} * with size = -1.

*/ public QByteArray(java.nio.Buffer arg__1) { this(arg__1, (long)-1); } public QByteArray(java.nio.Buffer arg__1, long size){ super((QPrivateConstructor)null); initialize_native(this, arg__1, size); } private native static void initialize_native(QByteArray instance, java.nio.Buffer arg__1, long size); /** *

See QByteArray::QByteArray(qsizetype,char)

*/ public QByteArray(long size, byte c){ super((QPrivateConstructor)null); initialize_native(this, size, c); } private native static void initialize_native(QByteArray instance, long size, byte c); /** *

See QByteArray::append(QByteArrayView)

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray append(io.qt.core.QByteArrayView a){ append_native_QByteArrayView(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(a)); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray append_native_QByteArrayView(long __this__nativeId, long a); /** *

See QByteArray::append(char)

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray append(byte c){ append_native_char(QtJambi_LibraryUtilities.internal.nativeId(this), c); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray append_native_char(long __this__nativeId, byte c); /** *

See QByteArray::append(QByteArray)

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray append(io.qt.core.QByteArray a){ append_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(a)); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray append_native_cref_QByteArray(long __this__nativeId, long a); @io.qt.QtUninvokable public final io.qt.core.QByteArray append(java.nio.Buffer s){ append_native_const_char_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), s); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray append_native_const_char_ptr(long __this__nativeId, java.nio.Buffer s); @io.qt.QtUninvokable public final io.qt.core.QByteArray append(java.nio.Buffer s, long len){ append_native_const_char_ptr_qsizetype(QtJambi_LibraryUtilities.internal.nativeId(this), s, len); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray append_native_const_char_ptr_qsizetype(long __this__nativeId, java.nio.Buffer s, long len); /** *

See QByteArray::append(qsizetype,char)

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray append(long count, byte c){ append_native_qsizetype_char(QtJambi_LibraryUtilities.internal.nativeId(this), count, c); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray append_native_qsizetype_char(long __this__nativeId, long count, byte c); /** *

See QByteArray::at(qsizetype)const

*/ @io.qt.QtUninvokable public final byte at(long i){ return at_native_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), i); } @io.qt.QtUninvokable private native byte at_native_qsizetype_constfct(long __this__nativeId, long i); /** *

See QByteArray::begin()const

*/ @io.qt.QtUninvokable protected final io.qt.core.QIterator begin(){ return begin_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QIterator begin_native_constfct(long __this__nativeId); /** *

See QByteArray::capacity()const

*/ @io.qt.QtUninvokable public final long capacity(){ return capacity_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native long capacity_native_constfct(long __this__nativeId); /** *

See QByteArray::chop(qsizetype)

*/ @io.qt.QtUninvokable public final void chop(long n){ chop_native_qsizetype(QtJambi_LibraryUtilities.internal.nativeId(this), n); } @io.qt.QtUninvokable private native void chop_native_qsizetype(long __this__nativeId, long n); /** *

See QByteArray::chopped(qsizetype)const

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray chopped(long len){ return chopped_native_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), len); } @io.qt.QtUninvokable private native io.qt.core.QByteArray chopped_native_qsizetype_constfct(long __this__nativeId, long len); /** *

See QByteArray::clear()

*/ @io.qt.QtUninvokable public final void clear(){ clear_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native void clear_native(long __this__nativeId); /** *

Overloaded function for {@link #compare(io.qt.core.QByteArrayView, io.qt.core.Qt.CaseSensitivity)} * with cs = io.qt.core.Qt.CaseSensitivity.CaseSensitive.

*/ @io.qt.QtUninvokable public final int compare(io.qt.core.QByteArrayView a) { return compare(a, io.qt.core.Qt.CaseSensitivity.CaseSensitive); } /** *

See QByteArray::compare(QByteArrayView,Qt::CaseSensitivity)const

*/ @io.qt.QtUninvokable public final int compare(io.qt.core.QByteArrayView a, io.qt.core.Qt.CaseSensitivity cs){ return compare_native_QByteArrayView_Qt_CaseSensitivity_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(a), cs.value()); } @io.qt.QtUninvokable private native int compare_native_QByteArrayView_Qt_CaseSensitivity_constfct(long __this__nativeId, long a, int cs); /** *

See QByteArray::constData()const

*/ @io.qt.QtUninvokable public final byte[] toByteArray(){ return toByteArray_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native byte[] toByteArray_native_constfct(long __this__nativeId); /** *

See QByteArray::contains(QByteArrayView)const

*/ @io.qt.QtUninvokable public final boolean contains(io.qt.core.QByteArrayView bv){ return contains_native_QByteArrayView_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(bv)); } @io.qt.QtUninvokable private native boolean contains_native_QByteArrayView_constfct(long __this__nativeId, long bv); /** *

See QByteArray::contains(char)const

*/ @io.qt.QtUninvokable public final boolean contains(byte c){ return contains_native_char_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), c); } @io.qt.QtUninvokable private native boolean contains_native_char_constfct(long __this__nativeId, byte c); /** *

See QByteArray::count(QByteArrayView)const

*/ @io.qt.QtUninvokable public final long count(io.qt.core.QByteArrayView bv){ return count_native_QByteArrayView_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(bv)); } @io.qt.QtUninvokable private native long count_native_QByteArrayView_constfct(long __this__nativeId, long bv); /** *

See QByteArray::count(char)const

*/ @io.qt.QtUninvokable public final long count(byte c){ return count_native_char_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), c); } @io.qt.QtUninvokable private native long count_native_char_constfct(long __this__nativeId, byte c); /** *

See QByteArray::data()const

*/ @io.qt.QtUninvokable public final java.nio.ByteBuffer data(){ return data_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.nio.ByteBuffer data_native_constfct(long __this__nativeId); @io.qt.QtUninvokable public final void detach(){ detach_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native void detach_native(long __this__nativeId); /** *

See QByteArray::end()const

*/ @io.qt.QtUninvokable protected final io.qt.core.QIterator end(){ return end_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QIterator end_native_constfct(long __this__nativeId); /** *

See QByteArray::endsWith(QByteArrayView)const

*/ @io.qt.QtUninvokable public final boolean endsWith(io.qt.core.QByteArrayView bv){ return endsWith_native_QByteArrayView_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(bv)); } @io.qt.QtUninvokable private native boolean endsWith_native_QByteArrayView_constfct(long __this__nativeId, long bv); /** *

See QByteArray::endsWith(char)const

*/ @io.qt.QtUninvokable public final boolean endsWith(byte c){ return endsWith_native_char_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), c); } @io.qt.QtUninvokable private native boolean endsWith_native_char_constfct(long __this__nativeId, byte c); /** *

Overloaded function for {@link #fill(byte, long)} * with size = -1.

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray fill(byte c) { return fill(c, (long)-1); } /** *

See QByteArray::fill(char,qsizetype)

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray fill(byte c, long size){ fill_native_char_qsizetype(QtJambi_LibraryUtilities.internal.nativeId(this), c, size); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray fill_native_char_qsizetype(long __this__nativeId, byte c, long size); /** *

See QByteArray::first(qsizetype)const

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray first(long n){ return first_native_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), n); } @io.qt.QtUninvokable private native io.qt.core.QByteArray first_native_qsizetype_constfct(long __this__nativeId, long n); /** *

Overloaded function for {@link #indexOf(io.qt.core.QByteArrayView, long)} * with from = 0.

*/ @io.qt.QtUninvokable public final long indexOf(io.qt.core.QByteArrayView bv) { return indexOf(bv, (long)0); } /** *

See QByteArray::indexOf(QByteArrayView,qsizetype)const

*/ @io.qt.QtUninvokable public final long indexOf(io.qt.core.QByteArrayView bv, long from){ return indexOf_native_QByteArrayView_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(bv), from); } @io.qt.QtUninvokable private native long indexOf_native_QByteArrayView_qsizetype_constfct(long __this__nativeId, long bv, long from); /** *

Overloaded function for {@link #indexOf(byte, long)} * with from = 0.

*/ @io.qt.QtUninvokable public final long indexOf(byte c) { return indexOf(c, (long)0); } /** *

See QByteArray::indexOf(char,qsizetype)const

*/ @io.qt.QtUninvokable public final long indexOf(byte c, long from){ return indexOf_native_char_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), c, from); } @io.qt.QtUninvokable private native long indexOf_native_char_qsizetype_constfct(long __this__nativeId, byte c, long from); /** *

See QByteArray::insert(qsizetype,QByteArrayView)

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray insert(long i, io.qt.core.QByteArrayView data){ insert_native_qsizetype_QByteArrayView(QtJambi_LibraryUtilities.internal.nativeId(this), i, QtJambi_LibraryUtilities.internal.checkedNativeId(data)); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray insert_native_qsizetype_QByteArrayView(long __this__nativeId, long i, long data); /** *

See QByteArray::insert(qsizetype,char)

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray insert(long i, byte c){ insert_native_qsizetype_char(QtJambi_LibraryUtilities.internal.nativeId(this), i, c); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray insert_native_qsizetype_char(long __this__nativeId, long i, byte c); /** *

See QByteArray::insert(qsizetype,QByteArray)

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray insert(long i, io.qt.core.QByteArray data){ insert_native_qsizetype_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), i, QtJambi_LibraryUtilities.internal.checkedNativeId(data)); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray insert_native_qsizetype_cref_QByteArray(long __this__nativeId, long i, long data); @io.qt.QtUninvokable public final io.qt.core.QByteArray insert(long i, java.lang.String s){ insert_native_qsizetype_const_char_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), i, s); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray insert_native_qsizetype_const_char_ptr(long __this__nativeId, long i, java.lang.String s); @io.qt.QtUninvokable public final io.qt.core.QByteArray insert(long i, java.nio.Buffer s, long len){ insert_native_qsizetype_const_char_ptr_qsizetype(QtJambi_LibraryUtilities.internal.nativeId(this), i, s, len); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray insert_native_qsizetype_const_char_ptr_qsizetype(long __this__nativeId, long i, java.nio.Buffer s, long len); /** *

See QByteArray::insert(qsizetype,qsizetype,char)

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray insert(long i, long count, byte c){ insert_native_qsizetype_qsizetype_char(QtJambi_LibraryUtilities.internal.nativeId(this), i, count, c); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray insert_native_qsizetype_qsizetype_char(long __this__nativeId, long i, long count, byte c); @io.qt.QtUninvokable public final boolean isDetached(){ return isDetached_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isDetached_native_constfct(long __this__nativeId); /** *

See QByteArray::isEmpty()const

*/ @io.qt.QtUninvokable public final boolean isEmpty(){ return isEmpty_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isEmpty_native_constfct(long __this__nativeId); /** *

See QByteArray::isLower()const

*/ @io.qt.QtUninvokable public final boolean isLower(){ return isLower_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isLower_native_constfct(long __this__nativeId); /** *

See QByteArray::isNull()const

*/ @io.qt.QtUninvokable public final boolean isNull(){ return isNull_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isNull_native_constfct(long __this__nativeId); @io.qt.QtUninvokable public final boolean isSharedWith(io.qt.core.QByteArray other){ return isSharedWith_native_cref_QByteArray_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @io.qt.QtUninvokable private native boolean isSharedWith_native_cref_QByteArray_constfct(long __this__nativeId, long other); /** *

See QByteArray::isUpper()const

*/ @io.qt.QtUninvokable public final boolean isUpper(){ return isUpper_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isUpper_native_constfct(long __this__nativeId); /** *

See QByteArray::last(qsizetype)const

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray last(long n){ return last_native_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), n); } @io.qt.QtUninvokable private native io.qt.core.QByteArray last_native_qsizetype_constfct(long __this__nativeId, long n); /** *

See QByteArray::lastIndexOf(QByteArrayView)const

*/ @io.qt.QtUninvokable public final long lastIndexOf(io.qt.core.QByteArrayView bv){ return lastIndexOf_native_QByteArrayView_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(bv)); } @io.qt.QtUninvokable private native long lastIndexOf_native_QByteArrayView_constfct(long __this__nativeId, long bv); /** *

See QByteArray::lastIndexOf(QByteArrayView,qsizetype)const

*/ @io.qt.QtUninvokable public final long lastIndexOf(io.qt.core.QByteArrayView bv, long from){ return lastIndexOf_native_QByteArrayView_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(bv), from); } @io.qt.QtUninvokable private native long lastIndexOf_native_QByteArrayView_qsizetype_constfct(long __this__nativeId, long bv, long from); /** *

Overloaded function for {@link #lastIndexOf(byte, long)} * with from = -1.

*/ @io.qt.QtUninvokable public final long lastIndexOf(byte c) { return lastIndexOf(c, (long)-1); } /** *

See QByteArray::lastIndexOf(char,qsizetype)const

*/ @io.qt.QtUninvokable public final long lastIndexOf(byte c, long from){ return lastIndexOf_native_char_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), c, from); } @io.qt.QtUninvokable private native long lastIndexOf_native_char_qsizetype_constfct(long __this__nativeId, byte c, long from); /** *

See QByteArray::left(qsizetype)const

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray left(long len){ return left_native_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), len); } @io.qt.QtUninvokable private native io.qt.core.QByteArray left_native_qsizetype_constfct(long __this__nativeId, long len); /** *

Overloaded function for {@link #leftJustified(long, byte, boolean)} * with truncate = false.

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray leftJustified(long width, byte fill) { return leftJustified(width, fill, (boolean)false); } /** *

Overloaded function for {@link #leftJustified(long, byte, boolean)}

*

with:

    *
  • fill = ' '
  • *
  • truncate = false
  • *
*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray leftJustified(long width) { return leftJustified(width, (byte)' ', (boolean)false); } /** *

See QByteArray::leftJustified(qsizetype,char,bool)const

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray leftJustified(long width, byte fill, boolean truncate){ return leftJustified_native_qsizetype_char_bool_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), width, fill, truncate); } @io.qt.QtUninvokable private native io.qt.core.QByteArray leftJustified_native_qsizetype_char_bool_constfct(long __this__nativeId, long width, byte fill, boolean truncate); /** *

See QByteArray::length()const

*/ @io.qt.QtUninvokable public final long length(){ return length_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native long length_native_constfct(long __this__nativeId); /** *

Overloaded function for {@link #mid(long, long)} * with len = -1.

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray mid(long index) { return mid(index, (long)-1); } /** *

See QByteArray::mid(qsizetype,qsizetype)const

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray mid(long index, long len){ return mid_native_qsizetype_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index, len); } @io.qt.QtUninvokable private native io.qt.core.QByteArray mid_native_qsizetype_qsizetype_constfct(long __this__nativeId, long index, long len); @io.qt.QtUninvokable private final boolean operator_less(io.qt.core.QByteArray a2){ return operator_less_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(a2)); } @io.qt.QtUninvokable private native boolean operator_less_native_cref_QByteArray(long __this__nativeId, long a2); /** *

See QByteArray::operator<(QString)const

*/ @io.qt.QtUninvokable private final boolean operator_less(java.lang.String s2){ return operator_less_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), s2); } @io.qt.QtUninvokable private native boolean operator_less_native_cref_QString_constfct(long __this__nativeId, java.lang.String s2); @io.qt.QtUninvokable private final boolean operator_less(io.qt.core.QByteArrayView a2){ return operator_less_native_const_char_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), a2); } @io.qt.QtUninvokable private native boolean operator_less_native_const_char_ptr(long __this__nativeId, io.qt.core.QByteArrayView a2); @io.qt.QtUninvokable private final boolean operator_less(){ return operator_less_native_std_nullptr_t(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean operator_less_native_std_nullptr_t(long __this__nativeId); @io.qt.QtUninvokable public void writeTo(io.qt.core.QDataStream arg__1){ java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); writeTo_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native void writeTo_native_ref_QDataStream(long __this__nativeId, long arg__1); /** *

See QByteArray::operator=(QByteArray)

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray set(io.qt.core.QByteArray arg__1){ set_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray set_native_cref_QByteArray(long __this__nativeId, long arg__1); @io.qt.QtUninvokable public final io.qt.core.QByteArray set(java.nio.Buffer str){ set_native_const_char_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), str); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray set_native_const_char_ptr(long __this__nativeId, java.nio.Buffer str); @io.qt.QtUninvokable private final boolean operator_equal(io.qt.core.QByteArray a2){ return operator_equal_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(a2)); } @io.qt.QtUninvokable private native boolean operator_equal_native_cref_QByteArray(long __this__nativeId, long a2); /** *

See QByteArray::operator==(QString)const

*/ @io.qt.QtUninvokable private final boolean operator_equal(java.lang.String s2){ return operator_equal_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), s2); } @io.qt.QtUninvokable private native boolean operator_equal_native_cref_QString_constfct(long __this__nativeId, java.lang.String s2); @io.qt.QtUninvokable private final boolean operator_equal(io.qt.core.QByteArrayView a2){ return operator_equal_native_const_char_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), a2); } @io.qt.QtUninvokable private native boolean operator_equal_native_const_char_ptr(long __this__nativeId, io.qt.core.QByteArrayView a2); @io.qt.QtUninvokable private final boolean operator_equal(){ return operator_equal_native_std_nullptr_t(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean operator_equal_native_std_nullptr_t(long __this__nativeId); @io.qt.QtUninvokable public void readFrom(io.qt.core.QDataStream arg__1){ java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); readFrom_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native void readFrom_native_ref_QDataStream(long __this__nativeId, long arg__1); /** *

See QByteArray::prepend(QByteArrayView)

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray prepend(io.qt.core.QByteArrayView a){ prepend_native_QByteArrayView(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(a)); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray prepend_native_QByteArrayView(long __this__nativeId, long a); /** *

See QByteArray::prepend(char)

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray prepend(byte c){ prepend_native_char(QtJambi_LibraryUtilities.internal.nativeId(this), c); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray prepend_native_char(long __this__nativeId, byte c); /** *

See QByteArray::prepend(QByteArray)

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray prepend(io.qt.core.QByteArray a){ prepend_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(a)); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray prepend_native_cref_QByteArray(long __this__nativeId, long a); @io.qt.QtUninvokable public final io.qt.core.QByteArray prepend(java.nio.Buffer s){ prepend_native_const_char_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), s); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray prepend_native_const_char_ptr(long __this__nativeId, java.nio.Buffer s); @io.qt.QtUninvokable public final io.qt.core.QByteArray prepend(java.nio.Buffer s, long len){ prepend_native_const_char_ptr_qsizetype(QtJambi_LibraryUtilities.internal.nativeId(this), s, len); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray prepend_native_const_char_ptr_qsizetype(long __this__nativeId, java.nio.Buffer s, long len); /** *

See QByteArray::prepend(qsizetype,char)

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray prepend(long count, byte c){ prepend_native_qsizetype_char(QtJambi_LibraryUtilities.internal.nativeId(this), count, c); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray prepend_native_qsizetype_char(long __this__nativeId, long count, byte c); /** *

See QByteArray::push_back(QByteArrayView)

*/ @io.qt.QtUninvokable public final void push_back(io.qt.core.QByteArrayView a){ push_back_native_QByteArrayView(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(a)); } @io.qt.QtUninvokable private native void push_back_native_QByteArrayView(long __this__nativeId, long a); /** *

See QByteArray::push_front(QByteArrayView)

*/ @io.qt.QtUninvokable public final void push_front(io.qt.core.QByteArrayView a){ push_front_native_QByteArrayView(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(a)); } @io.qt.QtUninvokable private native void push_front_native_QByteArrayView(long __this__nativeId, long a); /** *

See QByteArray::remove(qsizetype,qsizetype)

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray remove(long index, long len){ remove_native_qsizetype_qsizetype(QtJambi_LibraryUtilities.internal.nativeId(this), index, len); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray remove_native_qsizetype_qsizetype(long __this__nativeId, long index, long len); /** *

See QByteArray::repeated(qsizetype)const

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray repeated(long times){ return repeated_native_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), times); } @io.qt.QtUninvokable private native io.qt.core.QByteArray repeated_native_qsizetype_constfct(long __this__nativeId, long times); /** *

See QByteArray::replace(QByteArrayView,QByteArrayView)

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray replace(io.qt.core.QByteArrayView before, io.qt.core.QByteArrayView after){ replace_native_QByteArrayView_QByteArrayView(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(before), QtJambi_LibraryUtilities.internal.checkedNativeId(after)); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray replace_native_QByteArrayView_QByteArrayView(long __this__nativeId, long before, long after); /** *

See QByteArray::replace(char,QByteArrayView)

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray replace(byte before, io.qt.core.QByteArrayView after){ replace_native_char_QByteArrayView(QtJambi_LibraryUtilities.internal.nativeId(this), before, QtJambi_LibraryUtilities.internal.checkedNativeId(after)); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray replace_native_char_QByteArrayView(long __this__nativeId, byte before, long after); /** *

See QByteArray::replace(char,char)

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray replace(byte before, byte after){ replace_native_char_char(QtJambi_LibraryUtilities.internal.nativeId(this), before, after); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray replace_native_char_char(long __this__nativeId, byte before, byte after); @io.qt.QtUninvokable public final io.qt.core.QByteArray replace(java.nio.Buffer before, long bsize, java.nio.Buffer after, long asize){ replace_native_const_char_ptr_qsizetype_const_char_ptr_qsizetype(QtJambi_LibraryUtilities.internal.nativeId(this), before, bsize, after, asize); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray replace_native_const_char_ptr_qsizetype_const_char_ptr_qsizetype(long __this__nativeId, java.nio.Buffer before, long bsize, java.nio.Buffer after, long asize); /** *

See QByteArray::replace(qsizetype,qsizetype,QByteArrayView)

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray replace(long index, long len, io.qt.core.QByteArrayView s){ replace_native_qsizetype_qsizetype_QByteArrayView(QtJambi_LibraryUtilities.internal.nativeId(this), index, len, QtJambi_LibraryUtilities.internal.checkedNativeId(s)); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray replace_native_qsizetype_qsizetype_QByteArrayView(long __this__nativeId, long index, long len, long s); @io.qt.QtUninvokable public final io.qt.core.QByteArray replace(long index, long len, java.nio.Buffer s, long alen){ replace_native_qsizetype_qsizetype_const_char_ptr_qsizetype(QtJambi_LibraryUtilities.internal.nativeId(this), index, len, s, alen); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray replace_native_qsizetype_qsizetype_const_char_ptr_qsizetype(long __this__nativeId, long index, long len, java.nio.Buffer s, long alen); /** *

See QByteArray::reserve(qsizetype)

*/ @io.qt.QtUninvokable public final void reserve(long size){ reserve_native_qsizetype(QtJambi_LibraryUtilities.internal.nativeId(this), size); } @io.qt.QtUninvokable private native void reserve_native_qsizetype(long __this__nativeId, long size); /** *

See QByteArray::resize(qsizetype)

*/ @io.qt.QtUninvokable public final void resize(long size){ resize_native_qsizetype(QtJambi_LibraryUtilities.internal.nativeId(this), size); } @io.qt.QtUninvokable private native void resize_native_qsizetype(long __this__nativeId, long size); /** *

See QByteArray::right(qsizetype)const

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray right(long len){ return right_native_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), len); } @io.qt.QtUninvokable private native io.qt.core.QByteArray right_native_qsizetype_constfct(long __this__nativeId, long len); /** *

Overloaded function for {@link #rightJustified(long, byte, boolean)} * with truncate = false.

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray rightJustified(long width, byte fill) { return rightJustified(width, fill, (boolean)false); } /** *

Overloaded function for {@link #rightJustified(long, byte, boolean)}

*

with:

    *
  • fill = ' '
  • *
  • truncate = false
  • *
*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray rightJustified(long width) { return rightJustified(width, (byte)' ', (boolean)false); } /** *

See QByteArray::rightJustified(qsizetype,char,bool)const

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray rightJustified(long width, byte fill, boolean truncate){ return rightJustified_native_qsizetype_char_bool_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), width, fill, truncate); } @io.qt.QtUninvokable private native io.qt.core.QByteArray rightJustified_native_qsizetype_char_bool_constfct(long __this__nativeId, long width, byte fill, boolean truncate); /** *

Overloaded function for {@link #setNum(double, char, int)} * with precision = 6.

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray setNum(double arg__1, char format) { return setNum(arg__1, format, (int)6); } /** *

Overloaded function for {@link #setNum(double, char, int)}

*

with:

    *
  • format = 'g'
  • *
  • precision = 6
  • *
*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray setNum(double arg__1) { return setNum(arg__1, 'g', (int)6); } /** *

See QByteArray::setNum(double,char,int)

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray setNum(double arg__1, char format, int precision){ setNum_native_double_char_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1, format, precision); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray setNum_native_double_char_int(long __this__nativeId, double arg__1, char format, int precision); /** *

Overloaded function for {@link #setNum(float, char, int)} * with precision = 6.

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray setNum(float arg__1, char format) { return setNum(arg__1, format, (int)6); } /** *

Overloaded function for {@link #setNum(float, char, int)}

*

with:

    *
  • format = 'g'
  • *
  • precision = 6
  • *
*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray setNum(float arg__1) { return setNum(arg__1, 'g', (int)6); } /** *

See QByteArray::setNum(float,char,int)

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray setNum(float arg__1, char format, int precision){ setNum_native_float_char_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1, format, precision); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray setNum_native_float_char_int(long __this__nativeId, float arg__1, char format, int precision); /** *

Overloaded function for {@link #setNum(int, int)} * with base = 10.

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray setNum(int arg__1) { return setNum(arg__1, (int)10); } /** *

See QByteArray::setNum(int,int)

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray setNum(int arg__1, int base){ setNum_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1, base); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray setNum_native_int_int(long __this__nativeId, int arg__1, int base); /** *

Overloaded function for {@link #setNum(long, int)} * with base = 10.

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray setNum(long arg__1) { return setNum(arg__1, (int)10); } /** *

See QByteArray::setNum(qlonglong,int)

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray setNum(long arg__1, int base){ setNum_native_long_long_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1, base); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray setNum_native_long_long_int(long __this__nativeId, long arg__1, int base); /** *

Overloaded function for {@link #setNum(short, int)} * with base = 10.

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray setNum(short arg__1) { return setNum(arg__1, (int)10); } /** *

See QByteArray::setNum(short,int)

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray setNum(short arg__1, int base){ setNum_native_short_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1, base); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray setNum_native_short_int(long __this__nativeId, short arg__1, int base); /** *

See QByteArray::setRawData(const char*,qsizetype)

*/ @io.qt.QtUninvokable protected final io.qt.core.QByteArray setRawData(java.nio.Buffer a, long n){ setRawData_native_const_char_ptr_qsizetype(QtJambi_LibraryUtilities.internal.nativeId(this), a, n); return this; } @io.qt.QtUninvokable private native io.qt.core.QByteArray setRawData_native_const_char_ptr_qsizetype(long __this__nativeId, java.nio.Buffer a, long n); /** *

See QByteArray::shrink_to_fit()

*/ @io.qt.QtUninvokable public final void shrink_to_fit(){ shrink_to_fit_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native void shrink_to_fit_native(long __this__nativeId); /** *

See QByteArray::simplified()const

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray simplified(){ return simplified_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QByteArray simplified_native_constfct(long __this__nativeId); /** *

See QByteArray::size()const

*/ @io.qt.QtUninvokable public final long size(){ return size_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native long size_native_constfct(long __this__nativeId); /** *

See QByteArray::sliced(qsizetype)const

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray sliced(long pos){ return sliced_native_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), pos); } @io.qt.QtUninvokable private native io.qt.core.QByteArray sliced_native_qsizetype_constfct(long __this__nativeId, long pos); /** *

See QByteArray::sliced(qsizetype,qsizetype)const

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray sliced(long pos, long n){ return sliced_native_qsizetype_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), pos, n); } @io.qt.QtUninvokable private native io.qt.core.QByteArray sliced_native_qsizetype_qsizetype_constfct(long __this__nativeId, long pos, long n); /** *

See QByteArray::split(char)const

*/ @io.qt.QtUninvokable public final io.qt.core.QList split(byte sep){ return split_native_char_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), sep); } @io.qt.QtUninvokable private native io.qt.core.QList split_native_char_constfct(long __this__nativeId, byte sep); /** *

See QByteArray::squeeze()

*/ @io.qt.QtUninvokable public final void squeeze(){ squeeze_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native void squeeze_native(long __this__nativeId); /** *

See QByteArray::startsWith(QByteArrayView)const

*/ @io.qt.QtUninvokable public final boolean startsWith(io.qt.core.QByteArrayView bv){ return startsWith_native_QByteArrayView_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(bv)); } @io.qt.QtUninvokable private native boolean startsWith_native_QByteArrayView_constfct(long __this__nativeId, long bv); /** *

See QByteArray::startsWith(char)const

*/ @io.qt.QtUninvokable public final boolean startsWith(byte c){ return startsWith_native_char_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), c); } @io.qt.QtUninvokable private native boolean startsWith_native_char_constfct(long __this__nativeId, byte c); /** *

See QByteArray::swap(QByteArray&)

*/ @io.qt.QtUninvokable public final void swap(io.qt.core.QByteArray other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); swap_native_ref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @io.qt.QtUninvokable private native void swap_native_ref_QByteArray(long __this__nativeId, long other); /** *

Overloaded function for {@link #toBase64(io.qt.core.QByteArray.Base64Options)}.

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray toBase64(io.qt.core.QByteArray.Base64Option ... options){ return toBase64(new io.qt.core.QByteArray.Base64Options(options)); } /** *

Overloaded function for {@link #toBase64(io.qt.core.QByteArray.Base64Options)} * with options = new io.qt.core.QByteArray.Base64Options(0).

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray toBase64() { return toBase64(new io.qt.core.QByteArray.Base64Options(0)); } /** *

See QByteArray::toBase64(Base64Options)const

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray toBase64(io.qt.core.QByteArray.Base64Options options){ return toBase64_native_QFlags_QByteArray_Base64Option__constfct(QtJambi_LibraryUtilities.internal.nativeId(this), options.value()); } @io.qt.QtUninvokable private native io.qt.core.QByteArray toBase64_native_QFlags_QByteArray_Base64Option__constfct(long __this__nativeId, int options); /** *

See QByteArray::toDouble(bool*)const

*/ @io.qt.QtUninvokable public final double toDouble() throws NumberFormatException{ return toDouble_native_bool_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native double toDouble_native_bool_ptr_constfct(long __this__nativeId) throws NumberFormatException ; /** *

See QByteArray::toFloat(bool*)const

*/ @io.qt.QtUninvokable public final float toFloat() throws NumberFormatException{ return toFloat_native_bool_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native float toFloat_native_bool_ptr_constfct(long __this__nativeId) throws NumberFormatException ; /** *

Overloaded function for {@link #toHex(byte)} * with separator = '\0'.

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray toHex() { return toHex((byte)'\0'); } /** *

See QByteArray::toHex(char)const

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray toHex(byte separator){ return toHex_native_char_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), separator); } @io.qt.QtUninvokable private native io.qt.core.QByteArray toHex_native_char_constfct(long __this__nativeId, byte separator); /** *

Overloaded function for {@link #toInt(int)} * with base = 10.

*/ @io.qt.QtUninvokable public final int toInt() throws NumberFormatException { return toInt((int)10); } /** *

See QByteArray::toInt(bool*,int)const

*/ @io.qt.QtUninvokable public final int toInt(int base) throws NumberFormatException{ return toInt_native_bool_ptr_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), base); } @io.qt.QtUninvokable private native int toInt_native_bool_ptr_int_constfct(long __this__nativeId, int base) throws NumberFormatException ; /** *

See QByteArray::toLower()const

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray toLower(){ return toLower_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QByteArray toLower_native_constfct(long __this__nativeId); /** *

Overloaded function for {@link #toPercentEncoding(io.qt.core.QByteArray, io.qt.core.QByteArray, byte)} * with percent = '%'.

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray toPercentEncoding(io.qt.core.QByteArray exclude, io.qt.core.QByteArray include) { return toPercentEncoding(exclude, include, (byte)'%'); } /** *

Overloaded function for {@link #toPercentEncoding(io.qt.core.QByteArray, io.qt.core.QByteArray, byte)}

*

with:

    *
  • include = new io.qt.core.QByteArray()
  • *
  • percent = '%'
  • *
*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray toPercentEncoding(io.qt.core.QByteArray exclude) { return toPercentEncoding(exclude, new io.qt.core.QByteArray(), (byte)'%'); } /** *

Overloaded function for {@link #toPercentEncoding(io.qt.core.QByteArray, io.qt.core.QByteArray, byte)}

*

with:

    *
  • exclude = new io.qt.core.QByteArray()
  • *
  • include = new io.qt.core.QByteArray()
  • *
  • percent = '%'
  • *
*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray toPercentEncoding() { return toPercentEncoding(new io.qt.core.QByteArray(), new io.qt.core.QByteArray(), (byte)'%'); } /** *

See QByteArray::toPercentEncoding(QByteArray,QByteArray,char)const

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray toPercentEncoding(io.qt.core.QByteArray exclude, io.qt.core.QByteArray include, byte percent){ return toPercentEncoding_native_cref_QByteArray_cref_QByteArray_char_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(exclude), QtJambi_LibraryUtilities.internal.checkedNativeId(include), percent); } @io.qt.QtUninvokable private native io.qt.core.QByteArray toPercentEncoding_native_cref_QByteArray_cref_QByteArray_char_constfct(long __this__nativeId, long exclude, long include, byte percent); /** *

Overloaded function for {@link #toShort(int)} * with base = 10.

*/ @io.qt.QtUninvokable public final short toShort() throws NumberFormatException { return toShort((int)10); } /** *

See QByteArray::toShort(bool*,int)const

*/ @io.qt.QtUninvokable public final short toShort(int base) throws NumberFormatException{ return toShort_native_bool_ptr_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), base); } @io.qt.QtUninvokable private native short toShort_native_bool_ptr_int_constfct(long __this__nativeId, int base) throws NumberFormatException ; /** *

See QByteArray::toUpper()const

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray toUpper(){ return toUpper_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QByteArray toUpper_native_constfct(long __this__nativeId); /** *

See QByteArray::trimmed()const

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray trimmed(){ return trimmed_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QByteArray trimmed_native_constfct(long __this__nativeId); /** *

See QByteArray::truncate(qsizetype)

*/ @io.qt.QtUninvokable public final void truncate(long pos){ truncate_native_qsizetype(QtJambi_LibraryUtilities.internal.nativeId(this), pos); } @io.qt.QtUninvokable private native void truncate_native_qsizetype(long __this__nativeId, long pos); /** *

Overloaded function for {@link #fromBase64(io.qt.core.QByteArray, io.qt.core.QByteArray.Base64Options)}.

*/ public static io.qt.core.QByteArray fromBase64(io.qt.core.QByteArray base64, io.qt.core.QByteArray.Base64Option ... options){ return fromBase64(base64, new io.qt.core.QByteArray.Base64Options(options)); } /** *

Overloaded function for {@link #fromBase64(io.qt.core.QByteArray, io.qt.core.QByteArray.Base64Options)} * with options = new io.qt.core.QByteArray.Base64Options(0).

*/ public static io.qt.core.QByteArray fromBase64(io.qt.core.QByteArray base64) { return fromBase64(base64, new io.qt.core.QByteArray.Base64Options(0)); } /** *

See QByteArray::fromBase64(QByteArray,Base64Options)

*/ public static io.qt.core.QByteArray fromBase64(io.qt.core.QByteArray base64, io.qt.core.QByteArray.Base64Options options){ return fromBase64_native_cref_QByteArray_QFlags_QByteArray_Base64Option_(QtJambi_LibraryUtilities.internal.checkedNativeId(base64), options.value()); } private native static io.qt.core.QByteArray fromBase64_native_cref_QByteArray_QFlags_QByteArray_Base64Option_(long base64, int options); /** *

Overloaded function for {@link #fromBase64Encoding(io.qt.core.QByteArray, io.qt.core.QByteArray.Base64Options)}.

*/ public static io.qt.core.QByteArray.FromBase64Result fromBase64Encoding(io.qt.core.QByteArray base64, io.qt.core.QByteArray.Base64Option ... options){ return fromBase64Encoding(base64, new io.qt.core.QByteArray.Base64Options(options)); } /** *

Overloaded function for {@link #fromBase64Encoding(io.qt.core.QByteArray, io.qt.core.QByteArray.Base64Options)} * with options = new io.qt.core.QByteArray.Base64Options(0).

*/ public static io.qt.core.QByteArray.FromBase64Result fromBase64Encoding(io.qt.core.QByteArray base64) { return fromBase64Encoding(base64, new io.qt.core.QByteArray.Base64Options(0)); } /** *

See QByteArray::fromBase64Encoding(QByteArray,Base64Options)

*/ public static io.qt.core.QByteArray.FromBase64Result fromBase64Encoding(io.qt.core.QByteArray base64, io.qt.core.QByteArray.Base64Options options){ return fromBase64Encoding_native_cref_QByteArray_QFlags_QByteArray_Base64Option_(QtJambi_LibraryUtilities.internal.checkedNativeId(base64), options.value()); } private native static io.qt.core.QByteArray.FromBase64Result fromBase64Encoding_native_cref_QByteArray_QFlags_QByteArray_Base64Option_(long base64, int options); /** *

See QByteArray::fromHex(QByteArray)

*/ public static io.qt.core.QByteArray fromHex(io.qt.core.QByteArray hexEncoded){ return fromHex_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.checkedNativeId(hexEncoded)); } private native static io.qt.core.QByteArray fromHex_native_cref_QByteArray(long hexEncoded); /** *

Overloaded function for {@link #fromPercentEncoding(io.qt.core.QByteArray, byte)} * with percent = '%'.

*/ public static io.qt.core.QByteArray fromPercentEncoding(io.qt.core.QByteArray pctEncoded) { return fromPercentEncoding(pctEncoded, (byte)'%'); } /** *

See QByteArray::fromPercentEncoding(QByteArray,char)

*/ public static io.qt.core.QByteArray fromPercentEncoding(io.qt.core.QByteArray pctEncoded, byte percent){ return fromPercentEncoding_native_cref_QByteArray_char(QtJambi_LibraryUtilities.internal.checkedNativeId(pctEncoded), percent); } private native static io.qt.core.QByteArray fromPercentEncoding_native_cref_QByteArray_char(long pctEncoded, byte percent); /** *

See QByteArray::fromRawData(const char*,qsizetype)

*/ public native static io.qt.core.QByteArray fromRawData(java.nio.Buffer data, long size); /** *

Overloaded function for {@link #number(double, byte, int)} * with precision = 6.

*/ public static io.qt.core.QByteArray number(double arg__1, byte format) { return number(arg__1, format, (int)6); } /** *

Overloaded function for {@link #number(double, byte, int)}

*

with:

    *
  • format = 'g'
  • *
  • precision = 6
  • *
*/ public static io.qt.core.QByteArray number(double arg__1) { return number(arg__1, (byte)'g', (int)6); } /** *

See QByteArray::number(double,char,int)

*/ public native static io.qt.core.QByteArray number(double arg__1, byte format, int precision); /** *

Overloaded function for {@link #number(int, int)} * with base = 10.

*/ public static io.qt.core.QByteArray number(int arg__1) { return number(arg__1, (int)10); } /** *

See QByteArray::number(int,int)

*/ public native static io.qt.core.QByteArray number(int arg__1, int base); /** *

Overloaded function for {@link #number(long, int)} * with base = 10.

*/ public static io.qt.core.QByteArray number(long arg__1) { return number(arg__1, (int)10); } /** *

See QByteArray::number(qlonglong,int)

*/ public native static io.qt.core.QByteArray number(long arg__1, int base); @Override public java.util.Iterator iterator() { return begin().iterator(); } /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QByteArray(QPrivateConstructor p) { super(p); } @Override @io.qt.QtUninvokable public boolean equals(Object other) { if (other instanceof byte[]) { other = new io.qt.core.QByteArrayView((byte[]) other); }else if (other instanceof java.nio.ByteBuffer) { other = new io.qt.core.QByteArrayView((java.nio.ByteBuffer) other); } if (other instanceof io.qt.core.QByteArray) { return operator_equal((io.qt.core.QByteArray) other); } else if (other instanceof java.lang.String) { return operator_equal((java.lang.String) other); } else if (other instanceof io.qt.core.QByteArrayView) { return operator_equal((io.qt.core.QByteArrayView) other); } else if (other==null) { return operator_equal(); } return false; } @io.qt.QtUninvokable public int compareTo(Object other) { if (other instanceof byte[]) { other = new io.qt.core.QByteArrayView((byte[]) other); }else if (other instanceof java.nio.ByteBuffer) { other = new io.qt.core.QByteArrayView((java.nio.ByteBuffer) other); } if (equals(other)) return 0; else if (other instanceof io.qt.core.QByteArray) { if (operator_less((io.qt.core.QByteArray) other)) return -1; else return 1; } else if (other instanceof java.lang.String) { if (operator_less((java.lang.String) other)) return -1; else return 1; } else if (other instanceof io.qt.core.QByteArrayView) { if (operator_less((io.qt.core.QByteArrayView) other)) return -1; else return 1; } if (other==null) { if (operator_less()) return -1; else return 1; } else throw new ClassCastException(); } @io.qt.QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native static int hashCode_native(long __this_nativeId); @io.qt.QtUninvokable @Override public String toString() { return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native static String toString_native(long __this_nativeId); public QByteArray(byte data[]) { this(java.nio.ByteBuffer.wrap(data), data.length); } @io.qt.QtUninvokable public final QByteArray prepend(byte[] data) { this.prepend(java.nio.ByteBuffer.wrap(data), data.length); return this; } @io.qt.QtUninvokable public native static QByteArray join(java.util.Collection stringList); @io.qt.QtUninvokable public native static QByteArray join(java.util.Collection stringList, byte sep); @io.qt.QtUninvokable public native static QByteArray join(java.util.Collection stringList, QByteArray sep); /** * Result class for {@link #fromBase64Encoding(io.qt.core.QByteArray, io.qt.core.QByteArray.Base64Options)} */ public static class FromBase64Result{ public final io.qt.core.QByteArray decoded; public final io.qt.core.QByteArray.Base64DecodingStatus decodingStatus; private FromBase64Result(QByteArray decoded, int decodingStatus) { super(); this.decoded = decoded; this.decodingStatus = Base64DecodingStatus.resolve(decodingStatus); } } private static byte[] getBytes(String s) { try { return s.getBytes("UTF-8"); } catch (java.io.UnsupportedEncodingException e) { return s.getBytes(); } } public QByteArray(String s) { this(getBytes(s)); } public QByteArray(byte data[], long size) { this(java.nio.ByteBuffer.wrap(data), size==-1 ? data.length : Math.min(size, data.length)); } @io.qt.QtUninvokable public final boolean contains(String str) { return contains(new QByteArrayView(str)); } @io.qt.QtUninvokable public final long count(String str) { return count(new QByteArrayView(str)); } @io.qt.QtUninvokable public final boolean endsWith(String str) { return endsWith(new QByteArrayView(str)); } @io.qt.QtUninvokable public final boolean endsWith(byte[] str) { return endsWith(new QByteArrayView(str)); } @io.qt.QtUninvokable public final boolean endsWith(java.nio.ByteBuffer str) { return endsWith(new QByteArrayView(str)); } @io.qt.QtUninvokable public final QByteArray prepend(String str) { return prepend(getBytes(str)); } @io.qt.QtUninvokable public final boolean startsWith(String str) { return startsWith(new QByteArrayView(str)); } @io.qt.QtUninvokable public final boolean startsWith(byte[] str) { return startsWith(new QByteArrayView(str)); } @io.qt.QtUninvokable public final boolean startsWith(java.nio.ByteBuffer str) { return startsWith(new QByteArrayView(str)); } @io.qt.QtUninvokable public final io.qt.core.QByteArray append(byte[] a){ return append(java.nio.ByteBuffer.wrap(a), a.length); } @io.qt.QtUninvokable public final io.qt.core.QByteArray append(String a){ return append(getBytes(a)); } @io.qt.QtUninvokable public final int compare(String str) { return compare(str, io.qt.core.Qt.CaseSensitivity.CaseSensitive); } @io.qt.QtUninvokable public final int compare(String str, io.qt.core.Qt.CaseSensitivity cs) { return compare(new QByteArrayView(str), cs); } @io.qt.QtUninvokable public final long count(byte data[]) { return count(new QByteArrayView(data)); } @io.qt.QtUninvokable public final boolean contains(byte data[]) { return contains(new QByteArrayView(data)); } @io.qt.QtUninvokable public final int compare(byte[] b) { return compare(b, io.qt.core.Qt.CaseSensitivity.CaseSensitive); } @io.qt.QtUninvokable public final int compare(byte[] b, io.qt.core.Qt.CaseSensitivity cs) { return compare(new QByteArrayView(b), cs); } @io.qt.QtUninvokable public final long count(java.nio.ByteBuffer data) { return count(new QByteArrayView(data)); } @io.qt.QtUninvokable public final boolean contains(java.nio.ByteBuffer data) { return contains(new QByteArrayView(data)); } @io.qt.QtUninvokable public final int compare(java.nio.ByteBuffer b) { return compare(b, io.qt.core.Qt.CaseSensitivity.CaseSensitive); } @io.qt.QtUninvokable public final int compare(java.nio.ByteBuffer b, io.qt.core.Qt.CaseSensitivity cs) { return compare(new QByteArrayView(b), cs); } @io.qt.QtUninvokable public final long indexOf(String strg) { return indexOf(strg, (int)0); } @io.qt.QtUninvokable public final long indexOf(String strg, long from){ return indexOf(new io.qt.core.QByteArrayView(strg), from); } @io.qt.QtUninvokable public final long indexOf(byte[] other) { return indexOf(other, (int)0); } @io.qt.QtUninvokable public final long indexOf(byte[] other, long from){ return indexOf(new io.qt.core.QByteArrayView(other), from); } @io.qt.QtUninvokable public final long indexOf(java.nio.ByteBuffer other) { return indexOf(other, (int)0); } @io.qt.QtUninvokable public final long indexOf(java.nio.ByteBuffer other, long from){ return indexOf(new io.qt.core.QByteArrayView(other), from); } @io.qt.QtUninvokable public final long indexOf(QByteArray other) { return indexOf(other, (long)0); } @io.qt.QtUninvokable public final long indexOf(QByteArray other, long from){ return indexOf(new io.qt.core.QByteArrayView(other), from); } @io.qt.QtUninvokable public final long lastIndexOf(String strg) { return lastIndexOf(strg, (long)0); } @io.qt.QtUninvokable public final long lastIndexOf(String strg, long from){ return lastIndexOf(new io.qt.core.QByteArrayView(strg), from); } @io.qt.QtUninvokable public final long lastIndexOf(byte[] other) { return lastIndexOf(other, (long)0); } @io.qt.QtUninvokable public final long lastIndexOf(byte[] other, long from){ return lastIndexOf(new io.qt.core.QByteArrayView(other), from); } @io.qt.QtUninvokable public final long lastIndexOf(java.nio.ByteBuffer other) { return lastIndexOf(other, (long)0); } @io.qt.QtUninvokable public final long lastIndexOf(java.nio.ByteBuffer other, long from){ return lastIndexOf(new io.qt.core.QByteArrayView(other), from); } @io.qt.QtUninvokable public final long lastIndexOf(QByteArray other) { return lastIndexOf(other, (long)0); } @io.qt.QtUninvokable public final long lastIndexOf(QByteArray other, long from){ return lastIndexOf(new io.qt.core.QByteArrayView(other), from); } @io.qt.QtUninvokable public final QByteArray replace(long index, long len, byte[] data) { this.replace(index, len, java.nio.ByteBuffer.wrap(data), data.length); return this; } @io.qt.QtUninvokable public final QByteArray insert(long i, byte[] data) { this.insert(i, java.nio.ByteBuffer.wrap(data), data.length); return this; } @io.qt.QtUninvokable public final QByteArray replace(QByteArray before, String after) { return replace(new QByteArrayView(before), new QByteArrayView(after)); } @io.qt.QtUninvokable public final QByteArray replace(String before, String after) { return replace(new QByteArrayView(before), new QByteArrayView(after)); } @Override public QByteArray clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native QByteArray clone_native(long __this_nativeId); }